124 lines
3.4 KiB
C
124 lines
3.4 KiB
C
#include "dspch.h"
|
|
#pragma hdrstop
|
|
|
|
#define AUTHZAPI
|
|
#define AUTHZ_CLIENT_CONTEXT_HANDLE PVOID
|
|
#define PAUTHZ_CLIENT_CONTEXT_HANDLE PVOID *
|
|
#define AUTHZ_RESOURCE_MANAGER_HANDLE PVOID
|
|
#define PAUTHZ_RESOURCE_MANAGER_HANDLE PVOID *
|
|
#define AUTHZ_CONTEXT_INFORMATION_CLASS DWORD
|
|
#define PFN_AUTHZ_ACCESS_CHECK PVOID
|
|
#define PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS PVOID
|
|
#define PFN_AUTHZ_FREE_DYNAMIC_GROUPS PVOID
|
|
#define PFN_AUTHZ_DYNAMIC_ACCESS_CHECK PVOID
|
|
#define PAUTHZ_ACCESS_REQUEST PVOID
|
|
#define AUTHZ_AUDIT_EVENT_HANDLE PVOID
|
|
#define PAUTHZ_ACCESS_REPLY PVOID
|
|
#define PAUTHZ_ACCESS_CHECK_RESULTS_HANDLE PVOID
|
|
|
|
static
|
|
AUTHZAPI
|
|
BOOL
|
|
WINAPI
|
|
AuthzAccessCheck(
|
|
IN DWORD Flags,
|
|
IN AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext,
|
|
IN PAUTHZ_ACCESS_REQUEST pRequest,
|
|
IN AUTHZ_AUDIT_EVENT_HANDLE hAuditEvent OPTIONAL,
|
|
IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
|
|
IN PSECURITY_DESCRIPTOR *OptionalSecurityDescriptorArray OPTIONAL,
|
|
IN DWORD OptionalSecurityDescriptorCount,
|
|
IN OUT PAUTHZ_ACCESS_REPLY pReply,
|
|
OUT PAUTHZ_ACCESS_CHECK_RESULTS_HANDLE phAccessCheckResults OPTIONAL
|
|
)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
static
|
|
AUTHZAPI
|
|
BOOL
|
|
WINAPI
|
|
AuthzFreeContext(
|
|
IN AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext
|
|
)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
static
|
|
AUTHZAPI
|
|
BOOL
|
|
WINAPI
|
|
AuthzFreeResourceManager(
|
|
IN AUTHZ_RESOURCE_MANAGER_HANDLE hAuthzResourceManager
|
|
)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
static
|
|
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
|
|
)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
static
|
|
AUTHZAPI
|
|
BOOL
|
|
WINAPI
|
|
AuthzInitializeContextFromSid(
|
|
IN DWORD Flags,
|
|
IN PSID UserSid,
|
|
IN AUTHZ_RESOURCE_MANAGER_HANDLE hAuthzResourceManager,
|
|
IN PLARGE_INTEGER pExpirationTime OPTIONAL,
|
|
IN LUID Identifier,
|
|
IN PVOID DynamicGroupArgs OPTIONAL,
|
|
OUT PAUTHZ_CLIENT_CONTEXT_HANDLE phAuthzClientContext
|
|
)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
static
|
|
AUTHZAPI
|
|
BOOL
|
|
WINAPI
|
|
AuthzInitializeResourceManager(
|
|
IN DWORD Flags,
|
|
IN PFN_AUTHZ_DYNAMIC_ACCESS_CHECK pfnDynamicAccessCheck OPTIONAL,
|
|
IN PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS pfnComputeDynamicGroups OPTIONAL,
|
|
IN PFN_AUTHZ_FREE_DYNAMIC_GROUPS pfnFreeDynamicGroups OPTIONAL,
|
|
IN PCWSTR szResourceManagerName,
|
|
OUT PAUTHZ_RESOURCE_MANAGER_HANDLE phAuthzResourceManager
|
|
)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
|
|
//
|
|
// !! WARNING !! The entries below must be in alphabetical order
|
|
// and are CASE SENSITIVE (i.e., lower case comes last!)
|
|
//
|
|
DEFINE_PROCNAME_ENTRIES(authz)
|
|
{
|
|
DLPENTRY(AuthzAccessCheck)
|
|
DLPENTRY(AuthzFreeContext)
|
|
DLPENTRY(AuthzFreeResourceManager)
|
|
DLPENTRY(AuthzGetInformationFromContext)
|
|
DLPENTRY(AuthzInitializeContextFromSid)
|
|
DLPENTRY(AuthzInitializeResourceManager)
|
|
};
|
|
|
|
DEFINE_PROCNAME_MAP(authz)
|