Ed Stegman posted a nice link[1] this morning which will help you a little. It shows what the base type is for all the different types the Platform SDK defines. For example DWORD = uint (thanks Ed ;)).
Many people on this list have recommended Adam Nathan's book about interop, but I haven't bought it (yet). Search the archives and/or amazon.com and you'll find it... hth, Andreas Häber [1] ms-help://MS.VSCC/MS.MSDNVS/win32/type_4ylv.htm ----- Original Message ----- From: "Ovidiu Platon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 3:33 PM Subject: [DOTNET] PInvoke question > 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. > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or > subscribe to other DevelopMentor lists at http://discuss.develop.com. > > You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.