Top "Intptr" questions

IntPtr is a .NET Framework platform-specific type that is used to represent a pointer or a handle.

Win api in C#. Get Hi and low word from IntPtr

I am trying to process a WM_MOUSEMOVE message in C#. What is the proper way to get an X …

c# winapi intptr
How to convert a Bitmap Image to IntPtr in C#?

I made this from an example i saw, it never threw any error, but the image is displayed as grey. …

c# bitmap intptr
Convert IntPtr to int* in C#?

I have a C++ DLL returning an int* to a C# program. The problem is the int* in C# remains …

c# pointers intptr managed-code
.NET Interop IntPtr vs. ref

Probably a noob question but interop isn't one of my strong points yet. Aside from limiting the number of overloads …

c# .net winapi interop intptr
error: unknown type name 'intptr_t'

I am receiving this error while compiling a C program in MinGW. As far as I know, I thought 'intptr_…

c mingw intptr
Getting Array of struct from IntPtr

I have some struct like this struct MyStruct { public int field1; public int field2; public int field3; } and I have …

c# arrays marshalling intptr
Correct way to marshal SIZE_T*?

I have the following C++ function definition, which I am trying to call through PInvoke from managed code: bool FooBar(…

c# c++ pinvoke marshalling intptr
Convert/Cast String (from a textbox) to IntPtr C#

I have a textbox where I want to input (manually) a Handle (http://i.imgur.com/S1bCyPy.png) My …

c# casting handle intptr
Marshal.Copy, copying an array of IntPtr into an IntPtr

I can't figure out how does the Copy(IntPtr[], Int32, IntPtr, Int32) method works. I though it could copy the …

c# arrays copy marshalling intptr
IntPtr into hex string in string.Format

Note, I am not quite sure this question belongs to this site but I try to be constructive. Why does …

c# hex tostring intptr