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.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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()
public:
[DllImportAttribute(L"Kernel32.dll")]
static Win32ErrorCode GetLastError()
[<DllImportAttribute("Kernel32.dll")>]
static member GetLastError : unit -> Win32ErrorCode
No code example is currently available or this language may not be supported.
Return Value
Win32ErrorCode
The return value is the calling thread's last-error code.