reactos/dll/win32/authz/precomp.h
Hermès Bélusca-Maïto 65ce146169 Create a branch for working on csrss and co.
svn path=/branches/ros-csrss/; revision=57561
2012-10-14 13:04:31 +00:00

57 lines
1.2 KiB
C

#ifndef __AUTHZ_PRECOMP_H
#define __AUTHZ_PRECOMP_H
#define _AUTHZ_
#include <windows.h>
#include <authz.h>
#include <debug.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 */
/* EOF */