2006-01-12 00:23:47 +00:00
|
|
|
#ifndef __AUTHZ_PRECOMP_H
|
|
|
|
#define __AUTHZ_PRECOMP_H
|
|
|
|
|
2005-09-30 21:28:29 +00:00
|
|
|
#define _AUTHZ_
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2014-02-07 18:02:02 +00:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#define _INC_WINDOWS
|
|
|
|
#define COM_NO_WINDOWS_H
|
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
|
2005-09-30 21:28:29 +00:00
|
|
|
#include <authz.h>
|
|
|
|
|
2005-10-07 02:28:42 +00:00
|
|
|
#if DBG
|
|
|
|
|
|
|
|
#define RESMAN_TAG 0x89ABCDEF
|
2006-01-12 00:23:47 +00:00
|
|
|
#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)
|
2005-10-07 02:28:42 +00:00
|
|
|
|
|
|
|
#else
|
|
|
|
|
2006-01-12 00:23:47 +00:00
|
|
|
#define VALIDATE_RESMAN_HANDLE(handle)
|
|
|
|
#define VALIDATE_CLIENTCTX_HANDLE(handle)
|
2005-10-07 02:28:42 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2006-01-12 00:23:47 +00:00
|
|
|
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;
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2006-01-12 00:23:47 +00:00
|
|
|
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;
|
2005-09-30 21:28:29 +00:00
|
|
|
|
2006-01-12 00:23:47 +00:00
|
|
|
#endif /* __AUTHZ_PRECOMP_H */
|