Ovidiu Platon [mailto:[EMAIL PROTECTED]] wrote:
> I'm sorry if this question has been posted before, but I've > looked through the archives and wasn't able to find a > suitable answer. I need to get a full list of Win32-to-.NET > type mappings for PInvoke, or to find out whether the PInvoke > manager in .NET can handle subtle type mismatches; for > example, I need to know whether CreateFile(string, uint, ...) > is the same with CreateFile(string, int, ...); does the sign > bit matter or is size the only important thing? (I mean the > number of bits, of course ;-) Also, I want to know how to > choose between ref and out parameters. Please give me at > least some MSDN or Web links. TIA, Ovidiu Platon. How about this[1] as a starting point for P/Invoke and marshaling. To immediately answer your questions about intrinsic .NET types, this link[2] should do. HTH, Drew .NET MVP [1] ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconinteropmarshaling.htm [2] ms-help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconplatforminvokedatatypes.htm You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.