Class Processthreadsapi

    • Constructor Detail

      • Processthreadsapi

        public Processthreadsapi()
    • Method Detail

      • GetCurrentThread

        public static final Winnt.HANDLE GetCurrentThread()
        GetCurrentThread Retrieves a pseudo handle for the calling thread.
        Returns:
        a pseudo handle for the current thread.
      • QueueUserAPC

        public static final void QueueUserAPC​(Winnt.PAPCFUNC pfnAPC,
                                              Winnt.HANDLE hThread,
                                              long dwData)
                                       throws NativeErrorException
        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 is null.
        NullPointerException - if hThread is null.
        NativeErrorException - if the return value of the native function indicates an error.