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/7/2011 11:21:57 PM - -184.108.40.206
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-220.127.116.11
сonstant for invalid handle value
5/15/2017 4:51:43 AM - -18.104.22.168
Please edit this page!
Do you have...