- java.lang.Object
-
- de.ibapl.jnhw.winapi.Processthreadsapi
-
@Include("processthreadsapi.h") public abstract class Processthreadsapi extends Object
Wrapper around the processthreadsapi.h header.- Author:
- aploese
-
-
Field Summary
Fields Modifier and Type Field Description static booleanHAVE_PROCESSTHREADSAPI_H
-
Constructor Summary
Constructors Constructor Description Processthreadsapi()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Winnt.HANDLEGetCurrentThread()GetCurrentThread Retrieves a pseudo handle for the calling thread.static voidQueueUserAPC(Winnt.PAPCFUNC pfnAPC, Winnt.HANDLE hThread, long dwData)QueueUserAPC Adds a user-mode asynchronous procedure call (APC) object to the APC queue of the specified thread.
-
-
-
Method Detail
-
QueueUserAPC
public static final void QueueUserAPC(Winnt.PAPCFUNC pfnAPC, Winnt.HANDLE hThread, long dwData)
QueueUserAPC Adds a user-mode asynchronous procedure call (APC) object to the APC queue of the specified thread.- Parameters:
pfnAPC- A pointer to the application-supplied APC function to be called when the specified thread performs an alertable wait operation.hThread- A handle to the thread.dwData- A single value that is passed to the APC function pointed to by the pfnAPC parameter.- Throws:
NullPointerException- if pfnAPC isnull.NullPointerException- if hThread isnull.NativeErrorException- if the return value of the native function indicates an error.
-
GetCurrentThread
public static final Winnt.HANDLE GetCurrentThread()
GetCurrentThread Retrieves a pseudo handle for the calling thread.- Returns:
- a pseudo handle for the current thread.
-
-