I'm pretty new to this so any clarification would be appreciated. When using the function ReadFile, how does the type of the lpBuffer interact with the parameter of "number of bytes to read"?
For instance what if you had an unsigned short MyShort[5] as lpBuffer, and then you set bytes to read as 2. Will all data be stored in MyShort[0]? Or would the first byte go into MyShort[0] and the second byte go into MyShort[1]? What happens when you set bytes to read is increase say to 9? Will 16bits go into MyShort[0] and then 16 more into MyShort[1] etc...?
Thanks