What's the "right" way to get Win32 p/Invoke declarations?
Posted
by Daniel Earwicker
on Stack Overflow
See other posts from Stack Overflow
or by Daniel Earwicker
Published on 2010-06-14T15:43:20Z
Indexed on
2010/06/14
22:42 UTC
Read the original article
Hit count: 218
I typically use the site http://www.pinvoke.net/ to grab a DllImport
declaration whenever I need to call a Win32 API, and I've noticed it's the de facto standard response on Stack Overflow to API interop questions.
Is this what "everyone" does? Is there a better way? Does Microsoft offer an alternative? e.g. a tool that reads .h files and outputs an assembly.
Why aren't there some standard assemblies that just expose all the Win32 APIs? What would be the barrier to creating them and using them, as an alternative to a site like pinvoke.net?
© Stack Overflow or respective owner