14#define APCH (HANDLE)'SOR '
36 *ApcHelperHandle =
APCH;
69 if ((ApcHelperHandle !=
APCH) || (!ThreadId) || (!ThreadId->ThreadHandle))
79 ThreadId->ThreadHandle =
NULL;
80 ThreadId->Reserved = 0;
96 if ((ApcHelperHandle !=
APCH) ||
98 (!ThreadId->ThreadHandle) ||
124 if ((ApcHelperHandle !=
APCH) || (!ThreadId))
138 &ThreadId->ThreadHandle,
144 ThreadId->Reserved = (
DWORD_PTR)ThreadHandle;
#define ERROR_INVALID_PARAMETER
#define GetCurrentProcess()
BOOL WINAPI DuplicateHandle(IN HANDLE hSourceProcessHandle, IN HANDLE hSourceHandle, IN HANDLE hTargetProcessHandle, OUT LPHANDLE lpTargetHandle, IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwOptions)
DWORD WINAPI QueueUserAPC(IN PAPCFUNC pfnAPC, IN HANDLE hThread, IN ULONG_PTR dwData)
DWORD WINAPI WahOpenCurrentThread(IN HANDLE ApcHelperHandle, OUT LPWSATHREADID ThreadId)
DWORD WINAPI WahCloseThread(IN HANDLE ApcHelperHandle, IN LPWSATHREADID ThreadId)
INT WINAPI WahQueueUserApc(IN HANDLE ApcHelperHandle, IN LPWSATHREADID ThreadId, IN LPWSAUSERAPC ApcRoutine, IN PVOID ApcContext OPTIONAL)
DWORD WINAPI WahCloseApcHelper(IN HANDLE ApcHelperHandle)
DWORD WINAPI WahOpenApcHelper(OUT PHANDLE ApcHelperHandle)
_In_ NDIS_ERROR_CODE ErrorCode
_In_opt_ HANDLE _In_opt_ PIO_APC_ROUTINE _In_opt_ PVOID ApcContext
_In_opt_ HANDLE _In_opt_ PIO_APC_ROUTINE ApcRoutine
_In_ HANDLE ProcessHandle
PULONG MinorVersion OPTIONAL
DWORD WINAPI GetLastError(void)
HANDLE WINAPI GetCurrentThread(void)
#define DUPLICATE_SAME_ACCESS