Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

FAQ (misc)
 
.
Summary
Common questions and their answers
Question
What is the wiki way for adding a link from one Wiki page to another?

I think putting square brackets around it will work

Here is a test Playground

also, every PascalCasedWord will be turned into a link. Check the Formatting Tips in the right column in edit mode https://pinvoke.net/emoticons/wink_smile.gif

Thanks jachymko. This wiki stuff is way cool https://pinvoke.net/emoticons/regular_smile.gif

Question
Why use IntPtr in PInvoke signatures when int works just fine?

For pointer-sized entities such as handles, they must be defined such that they will be 32 bits on a 32-bit machine and 64 bits on a 64-bit machine. IntPtr (or UIntPtr) accomplishes this. The use of int will appear to be fine if you only run the code on a 32-bit machine, but will likely cause your application/component to crash as soon as it gets on a 64-bit machine.

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions