Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than kernel32, prefix the name with the module name and a period.
[DllImport("kernel32.dll", SetLastError = true)]
Declare Function GetStdHandle Lib "kernel32.dll" (ByVal nStdHandle As Integer) As IntPtr
Tips & Tricks:
Please add some!
//C#: Get stdout handle
const int STD_OUTPUT_HANDLE = -11;
IntPtr iStdOut = GetStdHandle( STD_OUTPUT_HANDLE );
const int STD_INPUT_HANDLE = -10;
const int STD_ERROR_HANDLE = -12;
INVALID_HANDLE_VALUE (return value if invalid handle is specified)
Alternative Managed API:
Do you know one? Please contribute it!
The GetStdHandle API
11/8/2011 6:21:57 AM - -126.96.36.199
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 11:00:13 AM - tsahi-188.8.131.52
сonstant for invalid handle value
12/7/2014 2:34:28 PM - -184.108.40.206
Please edit this page!
Do you have...