#include "precomp.h"
#include <ndk/sefuncs.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
Definition at line 31 of file sid.c.
◆ GetUserSid()
Definition at line 36 of file sid.c.
37{
43
46 if (UserBuffer ==
NULL)
47 {
49 }
50
57 {
59 if (TempBuffer ==
NULL)
60 {
63 }
64
65 UserBuffer = TempBuffer;
71 }
72
74 {
77 }
78
80
83 {
86 }
87
89
91
93 {
96 }
97
99}
#define NT_SUCCESS(StatCode)
HLOCAL NTAPI LocalReAlloc(HLOCAL hMem, SIZE_T dwBytes, UINT uFlags)
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
HLOCAL NTAPI LocalFree(HLOCAL hMem)
NTSYSAPI BOOLEAN WINAPI RtlCopySid(DWORD, PSID, PSID)
NTSYSAPI ULONG NTAPI RtlLengthSid(IN PSID Sid)
_In_ ULONG _In_ ULONG _In_ ULONG Length
#define STATUS_BUFFER_TOO_SMALL
_Must_inspect_result_ __kernel_entry NTSTATUS NTAPI NtQueryInformationToken(_In_ HANDLE TokenHandle, _In_ TOKEN_INFORMATION_CLASS TokenInformationClass, _Out_writes_bytes_to_opt_(TokenInformationLength, *ReturnLength) PVOID TokenInformation, _In_ ULONG TokenInformationLength, _Out_ PULONG ReturnLength)
Queries a specific type of information in regard of an access token based upon the information class....
Referenced by CopySystemProfile(), and GetUserAndDomainName().
◆ GetUserSidStringFromToken()