mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
63 lines
1.3 KiB
C
63 lines
1.3 KiB
C
#ifndef __AUTHZ_PRECOMP_H
|
|
#define __AUTHZ_PRECOMP_H
|
|
|
|
#define _AUTHZ_
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define WIN32_NO_STATUS
|
|
#define _INC_WINDOWS
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
#include <windef.h>
|
|
#include <winbase.h>
|
|
|
|
#include <authz.h>
|
|
|
|
#if DBG
|
|
|
|
#define RESMAN_TAG 0x89ABCDEF
|
|
#define CLIENTCTX_TAG 0x789ABCDE
|
|
#define VALIDATE_RESMAN_HANDLE(handle) ASSERT(((PAUTHZ_RESMAN)handle)->Tag == RESMAN_TAG)
|
|
#define VALIDATE_CLIENTCTX_HANDLE(handle) ASSERT(((PAUTHZ_CLIENT_CONTEXT)handle)->Tag == CLIENTCTX_TAG)
|
|
|
|
#else
|
|
|
|
#define VALIDATE_RESMAN_HANDLE(handle)
|
|
#define VALIDATE_CLIENTCTX_HANDLE(handle)
|
|
|
|
#endif
|
|
|
|
typedef struct _AUTHZ_RESMAN
|
|
{
|
|
#if DBG
|
|
DWORD Tag;
|
|
#endif
|
|
|
|
PFN_AUTHZ_DYNAMIC_ACCESS_CHECK pfnAccessCheck;
|
|
PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS pfnComputeDynamicGroups;
|
|
PFN_AUTHZ_FREE_DYNAMIC_GROUPS pfnFreeDynamicGroups;
|
|
|
|
DWORD flags;
|
|
PSID UserSid;
|
|
LUID AuthenticationId;
|
|
|
|
WCHAR ResourceManagerName[1];
|
|
} AUTHZ_RESMAN, *PAUTHZ_RESMAN;
|
|
|
|
typedef struct _AUTHZ_CLIENT_CONTEXT
|
|
{
|
|
#if DBG
|
|
DWORD Tag;
|
|
#endif
|
|
|
|
PSID UserSid;
|
|
|
|
AUTHZ_RESOURCE_MANAGER_HANDLE AuthzResourceManager;
|
|
LUID Luid;
|
|
LARGE_INTEGER ExpirationTime;
|
|
AUTHZ_CLIENT_CONTEXT_HANDLE ServerContext;
|
|
PVOID DynamicGroupArgs;
|
|
} AUTHZ_CLIENT_CONTEXT, *PAUTHZ_CLIENT_CONTEXT;
|
|
|
|
#endif /* __AUTHZ_PRECOMP_H */
|