title: data send using DeviceIoControl from app to driver
body: <p>I can send data driver to app.</p>
  
  <p>In app:</p>
  
  <pre><code>DeviceIoControl(dHandle, IOCTL_TEST, (PVOID)InputBuffer, sizeof(InputBuffer), (PVOID)OutputBuffer, sizeof(OutputBuffer), &amp;dwRet, 0);
  printf("num : %s\n", OutputBuffer);
  </code></pre>
  
  <p>In driver:</p>
  
  <pre><code>char pData[1024];
  pData="eeee";
  case IOCTL_TEST:
          pInputBuffer = Irp-&gt;AssociatedIrp.SystemBuffer;
          pOutputBuffer = Irp-&gt;AssociatedIrp.SystemBuffer;
          inputBufferLength = pStack-&gt;Parameters.DeviceIoControl.OutputBufferLength;
          RtlCopyMemory(pOutputBuffer, pData, strlen(pData));
          break;
  Irp.IoStatus.Information=1024;
  </code></pre>
  
  <p>The result is printed <code>"eeee"</code> in application console.</p>
  
  <p>But i don't know how to send app data to driver.
  DeviceIoControl's 3, 4 parameters are input buffer and length.<br>
  If I add <code>char InputBuffer[1024] = "InputBuffer's data";</code> in app, how driver can receive this data?
  I want to use <code>DbgPrint()</code> for accepted data from app.</p>
  
  <hr>
  
  <p>I want to select answer.  plz answer not comment.</p>