GetStdHandle v0.1.0
Retrieves a handle to a standard device.
Package: Windows
Microsoft documentation: GetStdHandle
Signature
func GetStdHandle(stdHandle: uint32) -> *opaque;
Parameters
| Name | Description |
|---|---|
stdHandle | One of StdInputHandle, StdOutputHandle, or StdErrorHandle. |
Returns
*opaque — the current standard-device handle. The result can be null or the
invalid-handle sentinel (-1 as a handle) when no usable handle is available.
The returned handle is process-owned and normally must not be closed by the caller.
See also
Types and constants—StdHandlevaluesWindows— the package overview