- java.lang.Object
-
- de.ibapl.jnhw.winapi.Errhandlingapi
-
@Include("errhandlingapi.h") public abstract class Errhandlingapi extends Object
Wrapper around the errhandlingapi.h header.- Author:
- aploese
-
-
Constructor Summary
Constructors Constructor Description Errhandlingapi()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intGetLastError()GetLastError Retrieves the calling thread's last-error code value.static voidSetLastError(int dwErrCode)GetLastError Sets the last-error code for the calling thread.
-
-
-
Method Detail
-
GetLastError
public static final int GetLastError()
GetLastError Retrieves the calling thread's last-error code value. The last-error code is maintained on a per-thread basis. Multiple threads do not overwrite each other's last-error code.- Returns:
- the calling thread's last-error code. The Return Value section of the documentation for each function that sets the last-error code notes the conditions under which the function sets the last-error code. Most functions that set the thread's last-error code set it when they fail. However, some functions also set the last-error code when they succeed. If the function is not documented to set the last-error code, the value returned by this function is simply the most recent last-error code to have been set; some functions set the last-error code to 0 on success and others do not.
-
SetLastError
public static final void SetLastError(int dwErrCode)
GetLastError Sets the last-error code for the calling thread.
-
-