Microsoft SDK for Java

getLastWin32Error

This method of the DllLib class returns the Microsoft® Win32® error code set by the last DLL-imported method (declared with the setLastError modifier) invoked on the current thread.

Note   Only DLL methods declared with the setLastError modifier can set error codes.

Syntax

public static final int getLastWin32Error();

Return Value

Returns the last saved Win32 error code.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.