Undocumented functions of NTDLL

2OOO, 1O December


NtQueueApcThread
NtQueueApcThread

NTSYSAPI 
NTSTATUS
NTAPI

NtQueueApcThread(
IN HANDLE ThreadHandle, IN PIO_APC_ROUTINE ApcRoutine, IN PVOID ApcRoutineContext OPTIONAL, IN PIO_STATUS_BLOCK ApcStatusBlock OPTIONAL, IN ULONG ApcReserved OPTIONAL );


ThreadHandle
Open handle to any Thread Object, including caller's thread.

ApcRoutine
Entry point to user APC routine.

ApcRoutineContext
User defined parameter for ApcRoutine.

ApcStatusBlock
- ???

ApcReserved
- ???


Function adds user defined routine to thread's APC queue. This routine will be executed when thread will be signaled. You can manually empty APC queue by calling NtTestAlert.





Documented by:
Tomasz Nowak



Requirements:
Library: ntdll.lib


See also:
KiUserApcDispatcher
NtTestAlert