[DllImport("user32.dll")]
static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);
User-Defined Types:
None.
Notes:
None.
Tips & Tricks:
int will work instead of IntPtr... but only on 32-bit platforms. So stick with IntPtr!
Sample Code:
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
The ShowWindowAsync API
12/1/2015 6:11:36 AM - -90.177.63.74
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.