[DllImport("kernel32.dll", SetLastError=true)]
static extern uint GetLastError(TODO);
Use Runtime.InteropServices.Marshal.GetLastWin32Error()
Declare Function GetLastError Lib "kernel32.dll" (TODO) As TODO
None.
Do you know one? Please contribute it!
in C# use instead:
Marshal.GetLastWin32Error()
List of error codes: https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes
Please add some!