NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Marshal.GetLastWin32Error

Returns the last error incurred by Win32 code executed via Marshal. Note that the target function must have had the setLastError metadata flag set-- how this is done varies depending upon the source language used.

[Visual Basic]
Public Shared Function GetLastWin32Error() As Integer
[C#]
public static int GetLastWin32Error();
[C++]
public: static int GetLastWin32Error();
[JScript]
public static function GetLastWin32Error() : int;

Return Value

Last Win32 error code.

See Also

Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace