Process Hacker
nttp.h File Reference

Go to the source code of this file.

Typedefs

typedef struct _TP_ALPC TP_ALPC
 
typedef struct _TP_ALPC * PTP_ALPC
 
typedef VOID(NTAPI * PTP_ALPC_CALLBACK )(_Inout_ PTP_CALLBACK_INSTANCE Instance, _Inout_opt_ PVOID Context, _In_ PTP_ALPC Alpc)
 
typedef VOID(NTAPI * PTP_ALPC_CALLBACK_EX )(_Inout_ PTP_CALLBACK_INSTANCE Instance, _Inout_opt_ PVOID Context, _In_ PTP_ALPC Alpc, _In_ PVOID ApcContext)
 
typedef VOID(NTAPI * PTP_IO_CALLBACK )(_Inout_ PTP_CALLBACK_INSTANCE Instance, _Inout_opt_ PVOID Context, _In_ PVOID ApcContext, _In_ PIO_STATUS_BLOCK IoSB, _In_ PTP_IO Io)
 
typedef enum _TP_TRACE_TYPE TP_TRACE_TYPE
 

Enumerations

enum  _TP_TRACE_TYPE { TpTraceThreadPriority = 1, TpTraceThreadAffinity, MaxTpTraceType }
 

Functions

_Check_return_ NTSYSAPI
NTSTATUS NTAPI 
TpAllocPool (_Out_ PTP_POOL *PoolReturn, _Reserved_ PVOID Reserved)
 
NTSYSAPI VOID NTAPI TpReleasePool (_Inout_ PTP_POOL Pool)
 
NTSYSAPI VOID NTAPI TpSetPoolMaxThreads (_Inout_ PTP_POOL Pool, _In_ LONG MaxThreads)
 
NTSYSAPI NTSTATUS NTAPI TpSetPoolMinThreads (_Inout_ PTP_POOL Pool, _In_ LONG MinThreads)
 
NTSYSAPI NTSTATUS NTAPI TpQueryPoolStackInformation (_In_ PTP_POOL Pool, _Out_ PTP_POOL_STACK_INFORMATION PoolStackInformation)
 
NTSYSAPI NTSTATUS NTAPI TpSetPoolStackInformation (_Inout_ PTP_POOL Pool, _In_ PTP_POOL_STACK_INFORMATION PoolStackInformation)
 
_Check_return_ NTSYSAPI
NTSTATUS NTAPI 
TpAllocCleanupGroup (_Out_ PTP_CLEANUP_GROUP *CleanupGroupReturn)
 
NTSYSAPI VOID NTAPI TpReleaseCleanupGroup (_Inout_ PTP_CLEANUP_GROUP CleanupGroup)
 
NTSYSAPI VOID NTAPI TpReleaseCleanupGroupMembers (_Inout_ PTP_CLEANUP_GROUP CleanupGroup, _In_ LOGICAL CancelPendingCallbacks, _Inout_opt_ PVOID CleanupParameter)
 
NTSYSAPI VOID NTAPI TpCallbackSetEventOnCompletion (_Inout_ PTP_CALLBACK_INSTANCE Instance, _In_ HANDLE Event)
 
NTSYSAPI VOID NTAPI TpCallbackReleaseSemaphoreOnCompletion (_Inout_ PTP_CALLBACK_INSTANCE Instance, _In_ HANDLE Semaphore, _In_ LONG ReleaseCount)
 
NTSYSAPI VOID NTAPI TpCallbackReleaseMutexOnCompletion (_Inout_ PTP_CALLBACK_INSTANCE Instance, _In_ HANDLE Mutex)
 
NTSYSAPI VOID NTAPI TpCallbackLeaveCriticalSectionOnCompletion (_Inout_ PTP_CALLBACK_INSTANCE Instance, _Inout_ PRTL_CRITICAL_SECTION CriticalSection)
 
NTSYSAPI VOID NTAPI TpCallbackUnloadDllOnCompletion (_Inout_ PTP_CALLBACK_INSTANCE Instance, _In_ PVOID DllHandle)
 
NTSYSAPI NTSTATUS NTAPI TpCallbackMayRunLong (_Inout_ PTP_CALLBACK_INSTANCE Instance)
 
NTSYSAPI VOID NTAPI TpDisassociateCallback (_Inout_ PTP_CALLBACK_INSTANCE Instance)
 
_Check_return_ NTSYSAPI
NTSTATUS NTAPI 
TpSimpleTryPost (_In_ PTP_SIMPLE_CALLBACK Callback, _Inout_opt_ PVOID Context, _In_opt_ PTP_CALLBACK_ENVIRON CallbackEnviron)
 
_Check_return_ NTSYSAPI
NTSTATUS NTAPI 
TpAllocWork (_Out_ PTP_WORK *WorkReturn, _In_ PTP_WORK_CALLBACK Callback, _Inout_opt_ PVOID Context, _In_opt_ PTP_CALLBACK_ENVIRON CallbackEnviron)
 
NTSYSAPI VOID NTAPI TpReleaseWork (_Inout_ PTP_WORK Work)
 
NTSYSAPI VOID NTAPI TpPostWork (_Inout_ PTP_WORK Work)
 
NTSYSAPI VOID NTAPI TpWaitForWork (_Inout_ PTP_WORK Work, _In_ LOGICAL CancelPendingCallbacks)
 
_Check_return_ NTSYSAPI
NTSTATUS NTAPI 
TpAllocTimer (_Out_ PTP_TIMER *Timer, _In_ PTP_TIMER_CALLBACK Callback, _Inout_opt_ PVOID Context, _In_opt_ PTP_CALLBACK_ENVIRON CallbackEnviron)
 
NTSYSAPI VOID NTAPI TpReleaseTimer (_Inout_ PTP_TIMER Timer)
 
NTSYSAPI VOID NTAPI TpSetTimer (_Inout_ PTP_TIMER Timer, _In_opt_ PLARGE_INTEGER DueTime, _In_ LONG Period, _In_opt_ LONG WindowLength)
 
NTSYSAPI LOGICAL NTAPI TpIsTimerSet (_In_ PTP_TIMER Timer)
 
NTSYSAPI VOID NTAPI TpWaitForTimer (_Inout_ PTP_TIMER Timer, _In_ LOGICAL CancelPendingCallbacks)
 
_Check_return_ NTSYSAPI
NTSTATUS NTAPI 
TpAllocWait (_Out_ PTP_WAIT *WaitReturn, _In_ PTP_WAIT_CALLBACK Callback, _Inout_opt_ PVOID Context, _In_opt_ PTP_CALLBACK_ENVIRON CallbackEnviron)
 
NTSYSAPI VOID NTAPI TpReleaseWait (_Inout_ PTP_WAIT Wait)
 
NTSYSAPI VOID NTAPI TpSetWait (_Inout_ PTP_WAIT Wait, _In_opt_ HANDLE Handle, _In_opt_ PLARGE_INTEGER Timeout)
 
NTSYSAPI VOID NTAPI TpWaitForWait (_Inout_ PTP_WAIT Wait, _In_ LOGICAL CancelPendingCallbacks)
 
_Check_return_ NTSYSAPI
NTSTATUS NTAPI 
TpAllocIoCompletion (_Out_ PTP_IO *IoReturn, _In_ HANDLE File, _In_ PTP_IO_CALLBACK Callback, _Inout_opt_ PVOID Context, _In_opt_ PTP_CALLBACK_ENVIRON CallbackEnviron)
 
NTSYSAPI VOID NTAPI TpReleaseIoCompletion (_Inout_ PTP_IO Io)
 
NTSYSAPI VOID NTAPI TpStartAsyncIoOperation (_Inout_ PTP_IO Io)
 
NTSYSAPI VOID NTAPI TpCancelAsyncIoOperation (_Inout_ PTP_IO Io)
 
NTSYSAPI VOID NTAPI TpWaitForIoCompletion (_Inout_ PTP_IO Io, _In_ LOGICAL CancelPendingCallbacks)
 
NTSYSAPI NTSTATUS NTAPI TpAllocAlpcCompletion (_Out_ PTP_ALPC *AlpcReturn, _In_ HANDLE AlpcPort, _In_ PTP_ALPC_CALLBACK Callback, _Inout_opt_ PVOID Context, _In_opt_ PTP_CALLBACK_ENVIRON CallbackEnviron)
 
NTSYSAPI NTSTATUS NTAPI TpAllocAlpcCompletionEx (_Out_ PTP_ALPC *AlpcReturn, _In_ HANDLE AlpcPort, _In_ PTP_ALPC_CALLBACK_EX Callback, _Inout_opt_ PVOID Context, _In_opt_ PTP_CALLBACK_ENVIRON CallbackEnviron)
 
NTSYSAPI VOID NTAPI TpReleaseAlpcCompletion (_Inout_ PTP_ALPC Alpc)
 
NTSYSAPI VOID NTAPI TpWaitForAlpcCompletion (_Inout_ PTP_ALPC Alpc)
 
NTSYSAPI VOID NTAPI TpCaptureCaller (_In_ TP_TRACE_TYPE Type)
 
NTSYSAPI VOID NTAPI TpCheckTerminateWorker (_In_ HANDLE Thread)
 

Typedef Documentation

typedef struct _TP_ALPC * PTP_ALPC

Definition at line 6 of file nttp.h.

typedef VOID(NTAPI * PTP_ALPC_CALLBACK)(_Inout_ PTP_CALLBACK_INSTANCE Instance, _Inout_opt_ PVOID Context, _In_ PTP_ALPC Alpc)

Definition at line 9 of file nttp.h.

typedef VOID(NTAPI * PTP_ALPC_CALLBACK_EX)(_Inout_ PTP_CALLBACK_INSTANCE Instance, _Inout_opt_ PVOID Context, _In_ PTP_ALPC Alpc, _In_ PVOID ApcContext)

Definition at line 16 of file nttp.h.

typedef VOID(NTAPI * PTP_IO_CALLBACK)(_Inout_ PTP_CALLBACK_INSTANCE Instance, _Inout_opt_ PVOID Context, _In_ PVOID ApcContext, _In_ PIO_STATUS_BLOCK IoSB, _In_ PTP_IO Io)

Definition at line 308 of file nttp.h.

typedef struct _TP_ALPC TP_ALPC

Definition at line 6 of file nttp.h.

Enumeration Type Documentation

Enumerator:
TpTraceThreadPriority 
TpTraceThreadAffinity 
MaxTpTraceType 

Definition at line 405 of file nttp.h.

Function Documentation

NTSYSAPI NTSTATUS NTAPI TpAllocAlpcCompletion ( _Out_ PTP_ALPC AlpcReturn,
_In_ HANDLE  AlpcPort,
_In_ PTP_ALPC_CALLBACK  Callback,
_Inout_opt_ PVOID  Context,
_In_opt_ PTP_CALLBACK_ENVIRON  CallbackEnviron 
)
NTSYSAPI NTSTATUS NTAPI TpAllocAlpcCompletionEx ( _Out_ PTP_ALPC AlpcReturn,
_In_ HANDLE  AlpcPort,
_In_ PTP_ALPC_CALLBACK_EX  Callback,
_Inout_opt_ PVOID  Context,
_In_opt_ PTP_CALLBACK_ENVIRON  CallbackEnviron 
)
_Check_return_ NTSYSAPI NTSTATUS NTAPI TpAllocCleanupGroup ( _Out_ PTP_CLEANUP_GROUP *  CleanupGroupReturn)
_Check_return_ NTSYSAPI NTSTATUS NTAPI TpAllocIoCompletion ( _Out_ PTP_IO *  IoReturn,
_In_ HANDLE  File,
_In_ PTP_IO_CALLBACK  Callback,
_Inout_opt_ PVOID  Context,
_In_opt_ PTP_CALLBACK_ENVIRON  CallbackEnviron 
)
_Check_return_ NTSYSAPI NTSTATUS NTAPI TpAllocPool ( _Out_ PTP_POOL *  PoolReturn,
_Reserved_ PVOID  Reserved 
)
_Check_return_ NTSYSAPI NTSTATUS NTAPI TpAllocTimer ( _Out_ PTP_TIMER *  Timer,
_In_ PTP_TIMER_CALLBACK  Callback,
_Inout_opt_ PVOID  Context,
_In_opt_ PTP_CALLBACK_ENVIRON  CallbackEnviron 
)
_Check_return_ NTSYSAPI NTSTATUS NTAPI TpAllocWait ( _Out_ PTP_WAIT *  WaitReturn,
_In_ PTP_WAIT_CALLBACK  Callback,
_Inout_opt_ PVOID  Context,
_In_opt_ PTP_CALLBACK_ENVIRON  CallbackEnviron 
)
_Check_return_ NTSYSAPI NTSTATUS NTAPI TpAllocWork ( _Out_ PTP_WORK *  WorkReturn,
_In_ PTP_WORK_CALLBACK  Callback,
_Inout_opt_ PVOID  Context,
_In_opt_ PTP_CALLBACK_ENVIRON  CallbackEnviron 
)
NTSYSAPI VOID NTAPI TpCallbackLeaveCriticalSectionOnCompletion ( _Inout_ PTP_CALLBACK_INSTANCE  Instance,
_Inout_ PRTL_CRITICAL_SECTION  CriticalSection 
)
NTSYSAPI NTSTATUS NTAPI TpCallbackMayRunLong ( _Inout_ PTP_CALLBACK_INSTANCE  Instance)
NTSYSAPI VOID NTAPI TpCallbackReleaseMutexOnCompletion ( _Inout_ PTP_CALLBACK_INSTANCE  Instance,
_In_ HANDLE  Mutex 
)
NTSYSAPI VOID NTAPI TpCallbackReleaseSemaphoreOnCompletion ( _Inout_ PTP_CALLBACK_INSTANCE  Instance,
_In_ HANDLE  Semaphore,
_In_ LONG  ReleaseCount 
)
NTSYSAPI VOID NTAPI TpCallbackSetEventOnCompletion ( _Inout_ PTP_CALLBACK_INSTANCE  Instance,
_In_ HANDLE  Event 
)
NTSYSAPI VOID NTAPI TpCallbackUnloadDllOnCompletion ( _Inout_ PTP_CALLBACK_INSTANCE  Instance,
_In_ PVOID  DllHandle 
)
NTSYSAPI VOID NTAPI TpCancelAsyncIoOperation ( _Inout_ PTP_IO  Io)
NTSYSAPI VOID NTAPI TpCaptureCaller ( _In_ TP_TRACE_TYPE  Type)
NTSYSAPI VOID NTAPI TpCheckTerminateWorker ( _In_ HANDLE  Thread)
NTSYSAPI VOID NTAPI TpDisassociateCallback ( _Inout_ PTP_CALLBACK_INSTANCE  Instance)
NTSYSAPI LOGICAL NTAPI TpIsTimerSet ( _In_ PTP_TIMER  Timer)
NTSYSAPI VOID NTAPI TpPostWork ( _Inout_ PTP_WORK  Work)
NTSYSAPI NTSTATUS NTAPI TpQueryPoolStackInformation ( _In_ PTP_POOL  Pool,
_Out_ PTP_POOL_STACK_INFORMATION  PoolStackInformation 
)
NTSYSAPI VOID NTAPI TpReleaseAlpcCompletion ( _Inout_ PTP_ALPC  Alpc)
NTSYSAPI VOID NTAPI TpReleaseCleanupGroup ( _Inout_ PTP_CLEANUP_GROUP  CleanupGroup)
NTSYSAPI VOID NTAPI TpReleaseCleanupGroupMembers ( _Inout_ PTP_CLEANUP_GROUP  CleanupGroup,
_In_ LOGICAL  CancelPendingCallbacks,
_Inout_opt_ PVOID  CleanupParameter 
)
NTSYSAPI VOID NTAPI TpReleaseIoCompletion ( _Inout_ PTP_IO  Io)
NTSYSAPI VOID NTAPI TpReleasePool ( _Inout_ PTP_POOL  Pool)
NTSYSAPI VOID NTAPI TpReleaseTimer ( _Inout_ PTP_TIMER  Timer)
NTSYSAPI VOID NTAPI TpReleaseWait ( _Inout_ PTP_WAIT  Wait)
NTSYSAPI VOID NTAPI TpReleaseWork ( _Inout_ PTP_WORK  Work)
NTSYSAPI VOID NTAPI TpSetPoolMaxThreads ( _Inout_ PTP_POOL  Pool,
_In_ LONG  MaxThreads 
)
NTSYSAPI NTSTATUS NTAPI TpSetPoolMinThreads ( _Inout_ PTP_POOL  Pool,
_In_ LONG  MinThreads 
)
NTSYSAPI NTSTATUS NTAPI TpSetPoolStackInformation ( _Inout_ PTP_POOL  Pool,
_In_ PTP_POOL_STACK_INFORMATION  PoolStackInformation 
)
NTSYSAPI VOID NTAPI TpSetTimer ( _Inout_ PTP_TIMER  Timer,
_In_opt_ PLARGE_INTEGER  DueTime,
_In_ LONG  Period,
_In_opt_ LONG  WindowLength 
)
NTSYSAPI VOID NTAPI TpSetWait ( _Inout_ PTP_WAIT  Wait,
_In_opt_ HANDLE  Handle,
_In_opt_ PLARGE_INTEGER  Timeout 
)
_Check_return_ NTSYSAPI NTSTATUS NTAPI TpSimpleTryPost ( _In_ PTP_SIMPLE_CALLBACK  Callback,
_Inout_opt_ PVOID  Context,
_In_opt_ PTP_CALLBACK_ENVIRON  CallbackEnviron 
)
NTSYSAPI VOID NTAPI TpStartAsyncIoOperation ( _Inout_ PTP_IO  Io)
NTSYSAPI VOID NTAPI TpWaitForAlpcCompletion ( _Inout_ PTP_ALPC  Alpc)
NTSYSAPI VOID NTAPI TpWaitForIoCompletion ( _Inout_ PTP_IO  Io,
_In_ LOGICAL  CancelPendingCallbacks 
)
NTSYSAPI VOID NTAPI TpWaitForTimer ( _Inout_ PTP_TIMER  Timer,
_In_ LOGICAL  CancelPendingCallbacks 
)
NTSYSAPI VOID NTAPI TpWaitForWait ( _Inout_ PTP_WAIT  Wait,
_In_ LOGICAL  CancelPendingCallbacks 
)
NTSYSAPI VOID NTAPI TpWaitForWork ( _Inout_ PTP_WORK  Work,
_In_ LOGICAL  CancelPendingCallbacks 
)