S
stax76
Hello,
can anybody tell me what it would look like in C++?
byte[] bRawData = new byte[raw.hid.dwSizHid];
int pRawData = buffer.ToInt32() + Marshal.SizeOf(typeof(RAWINPUT)) +
1; // buffer is of type IntPtr
Marshal.Copy(new IntPtr(pRawData), bRawData, 0, raw.hid.dwSizHid - 1);
int rawData = bRawData[0] | bRawData[1] << 8;
the full code is taken from the following article:
http://msdn.microsoft.com/en-us/library/ms996387.aspx
can anybody tell me what it would look like in C++?
byte[] bRawData = new byte[raw.hid.dwSizHid];
int pRawData = buffer.ToInt32() + Marshal.SizeOf(typeof(RAWINPUT)) +
1; // buffer is of type IntPtr
Marshal.Copy(new IntPtr(pRawData), bRawData, 0, raw.hid.dwSizHid - 1);
int rawData = bRawData[0] | bRawData[1] << 8;
the full code is taken from the following article:
http://msdn.microsoft.com/en-us/library/ms996387.aspx