18{
19 HANDLE ProcessToken, TokenDup;
23
24
27
30 &ProcessTokenStats,
31 sizeof(ProcessTokenStats),
35
36
39
42 &TokenDupStats,
43 sizeof(ProcessTokenStats),
47
58
61}
#define ok_luid_notequal(Luid, Comparand)
#define ok_luid_equal(Luid, Expected)
#define ok_size_t(expression, result)
#define ok_dec(expression, result)
BOOL WINAPI GetTokenInformation(HANDLE TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, LPVOID TokenInformation, DWORD TokenInformationLength, PDWORD ReturnLength)
BOOL WINAPI OpenProcessToken(HANDLE ProcessHandle, DWORD DesiredAccess, PHANDLE TokenHandle)
BOOL WINAPI DuplicateTokenEx(IN HANDLE ExistingTokenHandle, IN DWORD dwDesiredAccess, IN LPSECURITY_ATTRIBUTES lpTokenAttributes OPTIONAL, IN SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, IN TOKEN_TYPE TokenType, OUT PHANDLE DuplicateTokenHandle)
#define GetCurrentProcess()
IN CINT OUT PVOID IN ULONG OUT PULONG ReturnLength
SECURITY_IMPERSONATION_LEVEL ImpersonationLevel
DWORD WINAPI GetLastError(void)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO