if( result == IntPtr.Zero )
{
// An error occured
throw new Win32Exception( Marshal.GetLastWin32Error() );
}
return result;
}
Alternative Managed API:
Do you know one? Please contribute it!
The GetParent API
4/14/2017 12:49:01 PM - -78.110.196.168
The GetParent API
4/14/2017 12:49:01 PM - -78.110.196.168
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 4:00:13 AM - Damon Carr-72.43.165.29
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.