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.
public static final int getLastWin32Error();
Returns the last saved Win32 error code.