windows v.s. C# data types

  • Thread starter Thread starter Guest
  • Start date Start date
Here's a small list of data types in the .NET framework corresponding to
various Win32 data types - you should be able to convert those to C# types
(eg. System.Integer is int, etc)
http://msdn.microsoft.com/library/d...cpguide/html/cpconplatforminvokedatatypes.asp

Apart from that, what data type to use for a particular Win32 API call
largely depends on the method being called. Here's a link with information
on marshalling data from managed code to native code:
http://msdn.microsoft.com/library/d...tml/cpconmarshalingdatawithplatforminvoke.asp

Here's a list of resources on P/Invoke in general:
http://imran-koradia.blogspot.com/2004/10/pinvoke-platform-invoke-links-and.html

hope that helps..
Imran.
 
Cool. Thanks!

-P

Imran Koradia said:
Here's a small list of data types in the .NET framework corresponding to
various Win32 data types - you should be able to convert those to C# types
(eg. System.Integer is int, etc)
http://msdn.microsoft.com/library/d...cpguide/html/cpconplatforminvokedatatypes.asp

Apart from that, what data type to use for a particular Win32 API call
largely depends on the method being called. Here's a link with information
on marshalling data from managed code to native code:
http://msdn.microsoft.com/library/d...tml/cpconmarshalingdatawithplatforminvoke.asp

Here's a list of resources on P/Invoke in general:
http://imran-koradia.blogspot.com/2004/10/pinvoke-platform-invoke-links-and.html

hope that helps..
Imran.
 
Back
Top