GetLastError v0.1.0

Source
Retrieves the calling thread's last-error code.

Package: Windows

Microsoft documentation: GetLastError

Signature

func GetLastError() -> uint32;

Returns

uint32 — the thread-local Win32 error code.

Description

Call GetLastError immediately after a function reports failure and only when that function's contract defines a last-error value. Another API call may overwrite the code. A return value of 0 does not prove that the preceding operation succeeded.

See also