reactos/dll/win32/authz/precomp.h
Amine Khaldi c424146e2c Create a branch for cmake bringup.
svn path=/branches/cmake-bringup/; revision=48236
2010-07-24 18:52:44 +00:00

56 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 */