GetStdHandle v0.1.0

Source
Retrieves a handle to a standard device.

Package: Windows

Microsoft documentation: GetStdHandle

Signature

func GetStdHandle(stdHandle: uint32) -> *opaque;

Parameters

NameDescription
stdHandleOne 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