#include "precomp.h"
#include <debug.h>
Go to the source code of this file.
|
AUTHZAPI BOOL WINAPI | AuthzInitializeContextFromSid (IN DWORD Flags, IN PSID UserSid, IN AUTHZ_RESOURCE_MANAGER_HANDLE AuthzResourceManager, IN PLARGE_INTEGER pExpirationTime, IN LUID Identifier, IN PVOID DynamicGroupArgs, OUT PAUTHZ_CLIENT_CONTEXT_HANDLE pAuthzClientContext) |
|
AUTHZAPI BOOL WINAPI | AuthzGetInformationFromContext (IN AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, IN AUTHZ_CONTEXT_INFORMATION_CLASS InfoClass, IN DWORD BufferSize, OUT PDWORD pSizeRequired, OUT PVOID Buffer) |
|
AUTHZAPI BOOL WINAPI | AuthzFreeContext (IN AUTHZ_CLIENT_CONTEXT_HANDLE AuthzClientContext) |
|
◆ NDEBUG
◆ AuthzFreeContext()
Definition at line 213 of file clictx.c.
214{
216
217 if (AuthzClientContext !=
NULL)
218 {
220
222
224 {
226 }
227
230 }
231 else
233
234 return Ret;
235}
#define VALIDATE_CLIENTCTX_HANDLE(handle)
struct _AUTHZ_CLIENT_CONTEXT * PAUTHZ_CLIENT_CONTEXT
#define ERROR_INVALID_PARAMETER
HLOCAL NTAPI LocalFree(HLOCAL hMem)
◆ AuthzGetInformationFromContext()
Definition at line 111 of file clictx.c.
116{
118
119 if (hAuthzClientContext !=
NULL && pSizeRequired !=
NULL)
120 {
122
124
125 switch (InfoClass)
126 {
128 {
130 *pSizeRequired = SidLen;
132 {
134 }
135 else
136 {
140 }
141 break;
142 }
143
146 break;
147
150 break;
151
154 break;
155
159 {
161 }
162 else
163 {
166 }
167 break;
168
172 {
174 }
175 else
176 {
179 }
180 break;
181
183 *pSizeRequired =
sizeof(
LUID);
185 {
187 }
188 else
189 {
192 }
193 break;
194
195 default:
197 break;
198 }
199 }
200 else
202
203 return Ret;
204}
HANDLE * PAUTHZ_CLIENT_CONTEXT_HANDLE
@ AuthzContextInfoGroupsSids
@ AuthzContextInfoPrivileges
@ AuthzContextInfoRestrictedSids
@ AuthzContextInfoUserSid
@ AuthzContextInfoExpirationTime
@ AuthzContextInfoServerContext
@ AuthzContextInfoIdentifier
HANDLE AUTHZ_CLIENT_CONTEXT_HANDLE
#define ERROR_INSUFFICIENT_BUFFER
BOOL WINAPI CopySid(DWORD nDestinationSidLength, PSID pDestinationSid, PSID pSourceSid)
DWORD WINAPI GetLengthSid(PSID pSid)
#define ERROR_CALL_NOT_IMPLEMENTED
AUTHZ_CLIENT_CONTEXT_HANDLE ServerContext
LARGE_INTEGER ExpirationTime
union _LARGE_INTEGER LARGE_INTEGER
union _LARGE_INTEGER * PLARGE_INTEGER
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
◆ AuthzInitializeContextFromSid()
Definition at line 40 of file clictx.c.
47{
49
50 if (AuthzResourceManager !=
NULL && pExpirationTime !=
NULL && pAuthzClientContext !=
NULL &&
52 {
54
55
57
60 if (ClientCtx !=
NULL)
61 {
63
64
65#if DBG
66 ClientCtx->Tag = CLIENTCTX_TAG;
67#endif
68
69
72 SidLen);
74 {
76 goto FailNoMemory;
77 }
80 UserSid);
81
87
88
91 }
92 else
93 {
94FailNoMemory:
96 }
97 }
98 else
100
101 return Ret;
102}
#define AUTHZ_REQUIRE_S4U_LOGON
#define AUTHZ_SKIP_TOKEN_GROUPS
#define ERROR_NOT_ENOUGH_MEMORY
BOOL WINAPI IsValidSid(PSID pSid)
#define VALIDATE_RESMAN_HANDLE(handle)
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
AUTHZ_RESOURCE_MANAGER_HANDLE AuthzResourceManager
_Must_inspect_result_ _In_ ULONG Flags