SetLastError (kernel32)
Last changed: -124.148.167.58

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern void SetLastError(uint dwErrCode);tt

VB.NET Signature:

Declare Function SetLastError Lib "kernel32.dll" (ByVal dwErrCode As Integer) As Integer

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Call SetLastError(0) at the beginning of your function.

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation