Browse by Tags
All Tags »
PInvoke »
C# (RSS)
Sorry, but there are no more tags available to filter with.
Just as native pointer types are moved around with pointer arithmetic in native code, it can also be useful to move IntPtr types around in managed code. Say for instance there is an IntPtr available which points to a native array of Dog instances.
Read More...
A common PInvoke question is how to deal with a double pointer. More specifically, how can one dereference an IntPtr to another pointer without using unsafe code? Dereferencing a double pointer is done the same way a dereference to any other
Read More...
Boolean value types are a constant source of problems for people attempting to generate PInvoke signatures. It's yet another case of managed and native types differing on size. There are two common boolean types in native code: bool and BOOL. As with
Read More...