Kernel32GetLastError Method

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

The last-error code is maintained on a per-thread basis. Multiple threads do not overwrite each other's last-error code.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll")]
public static Win32ErrorCode GetLastError()

Return Value

Win32ErrorCode
The return value is the calling thread's last-error code.

Remarks

See Also