Hello,
can anybody tell me what it would look like in C++?
byte[] bRawData = new byte[raw.hid.dwSizHi d];
int pRawData = buffer.ToInt32( ) + Marshal.SizeOf( typeof(RAWINPUT )) +
1; // buffer is of type IntPtr
Marshal.Copy(ne w IntPtr(pRawData ), bRawData, 0, raw.hid.dwSizHi d - 1);
int rawData = bRawData[0] | bRawData[1] << 8;
the full code is taken from the following article:
can anybody tell me what it would look like in C++?
byte[] bRawData = new byte[raw.hid.dwSizHi d];
int pRawData = buffer.ToInt32( ) + Marshal.SizeOf( typeof(RAWINPUT )) +
1; // buffer is of type IntPtr
Marshal.Copy(ne w IntPtr(pRawData ), bRawData, 0, raw.hid.dwSizHi d - 1);
int rawData = bRawData[0] | bRawData[1] << 8;
the full code is taken from the following article:
Comment