Top "Intptr" questions

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

C#, default parameter value for an IntPtr

I'd like to use a default parameter value of IntPtr.Zero in a function that takes an IntPtr as an …

c# intptr default-parameters
What are handles for? IntPtr

I have been reading up on IntPtr and have read that it is used to represent a Handle(s). What …

c# .net handle intptr
How to allocate array of IntPtr [] in unmanaged memory?

To allocate memory in managed code i use: IntPtr [] params_list_n = new IntPtr [5]; But for unmanaged memory i use …

c# arrays memory-management intptr alloc
Which is better/safer to use: HandleRef or IntPtr (newer source code from Microsoft no longer uses HandleRef)

For example, in the old .NET Framework 2.0 Source Code (Windows Forms, Visual Studio 2005 - Whidbey), the GetClientRect function was defined …

c# winapi interop native intptr
Difference between IntPtr and UIntPtr

I was looking at the P/Invoke declaration of RegOpenKeyEx when I noticed this comment on the page: Changed IntPtr …

c# .net pointers intptr