I am an working on a mobile application using Windows Mobile PocketPC 5.0 SDK. At some point I need to call the function GetStoreInfo. It takes two parameters, first one is a handle to the open store and second one is a structure to be filled by the function. Caller only needs to fill in the cbSize field. And that is supposed to be equal to "sizeof(STOREINFO)"
My question is sizeof(STOREINFO) returns 232 for me but when I call the function with this cbSize I get error 160 (One or more arguments are not correct.). If I manually set the cbSize to 240, function returns success and I get the results I want.
Most probably I am doing something wrong with header files I am using. But I would like to know if anybody has seen similar behavior in this function or another API. What would you suggest to resolve the problem?
Thank you.