/// <summary>
/// Sets the last-error code for the calling thread.
/// </summary>
/// <param name="dwErrorCode">The last-error code for the thread.</param>
[DllImport("kernel32.dll", SetLastError = true)]
static extern void SetLastError(uint dwErrorCode);
Declare Function SetLastError Lib "kernel32.dll" (ByVal dwErrCode As Integer) As Integer
None.
None.
Call SetLastError(0) at the beginning of your function if you'll use GetLastError.
Please add some!
Do you know one? Please contribute it!