Hi ,
I am using window 7 64 bit and 64 bit device driver,
When i am trying to use the function DeviceIoControl(), the output buffer is always empty but the number of bytes returned is 4.
The exact syntax is given below
DeviceIoControl(m_device, IOCTL_USER_BUFFER, NULL, 0,
&outbuffer, sizeof(UINT_PTR), &Bytes, NULL);
The datatype of outbuffer is PBYTE and Bytes is DWORD
#define IOCTL_USER_BUFFER CTL_CODE(FILE_DEVICE_UNKNOWN, \
0x801, \
METHOD_BUFFERED, \
FILE_ANY_ACCESS)
But when i use the DeviceIoControl function for "0x800", I am able to receive buffer.
Please suggest me if i am missing something.
What I have tried:
DeviceIoControl is returning empty buffer when communicating with 64 bit device driver