ReactOS 0.4.16-dev-937-g7afcd2a
authz.c File Reference
#include "precomp.h"
#include <debug.h>
Include dependency graph for authz.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

AUTHZAPI BOOL WINAPI AuthzAccessCheck (IN DWORD flags, IN AUTHZ_CLIENT_CONTEXT_HANDLE AuthzClientContext, IN PAUTHZ_ACCESS_REQUEST pRequest, IN AUTHZ_AUDIT_INFO_HANDLE AuditInfo, IN PSECURITY_DESCRIPTOR pSecurityDescriptor, IN PSECURITY_DESCRIPTOR *OptionalSecurityDescriptorArray, IN DWORD OptionalSecurityDescriptorCount OPTIONAL, IN OUT PAUTHZ_ACCESS_REPLY pReply, OUT PAUTHZ_ACCESS_CHECK_RESULTS_HANDLE pAuthzHandle)
 
AUTHZAPI BOOL WINAPI AuthzAddSidsToContext (IN AUTHZ_CLIENT_CONTEXT_HANDLE OrigClientContext, IN PSID_AND_ATTRIBUTES Sids, IN DWORD SidCount, IN PSID_AND_ATTRIBUTES RestrictedSids, IN DWORD RestrictedSidCount, OUT PAUTHZ_CLIENT_CONTEXT_HANDLE pNewClientContext)
 
AUTHZAPI BOOL WINAPI AuthzCachedAccessCheck (IN DWORD Flags, IN AUTHZ_ACCESS_CHECK_RESULTS_HANDLE AuthzHandle, IN PAUTHZ_ACCESS_REQUEST pRequest, IN AUTHZ_AUDIT_EVENT_HANDLE AuditInfo, OUT PAUTHZ_ACCESS_REPLY pReply)
 
AUTHZAPI BOOL WINAPI AuthzEnumerateSecurityEventSources (IN DWORD dwFlags, OUT PAUTHZ_SOURCE_SCHEMA_REGISTRATION Buffer, OUT PDWORD pdwCount, IN OUT PDWORD pdwLength)
 
AUTHZAPI BOOL WINAPI AuthzFreeAuditEvent (IN AUTHZ_AUDIT_EVENT_HANDLE pAuditEventInfo)
 
AUTHZAPI BOOL WINAPI AuthzFreeHandle (IN AUTHZ_ACCESS_CHECK_RESULTS_HANDLE AuthzHandle)
 
AUTHZAPI BOOL WINAPI AuthzInitializeContextFromAuthzContext (IN DWORD flags, IN AUTHZ_CLIENT_CONTEXT_HANDLE AuthzHandle, IN PLARGE_INTEGER ExpirationTime, IN LUID Identifier, IN PVOID DynamicGroupArgs, OUT PAUTHZ_CLIENT_CONTEXT_HANDLE phNewAuthzHandle)
 
AUTHZAPI BOOL WINAPI AuthzInitializeContextFromToken (IN DWORD Flags, IN HANDLE TokenHandle, IN AUTHZ_RESOURCE_MANAGER_HANDLE AuthzResourceManager, IN PLARGE_INTEGER pExpirationTime, IN LUID Identifier, IN PVOID DynamicGroupArgs, OUT PAUTHZ_CLIENT_CONTEXT_HANDLE pAuthzClientContext)
 
AUTHZAPI BOOL WINAPIV AuthzInitializeObjectAccessAuditEvent (IN DWORD Flags, IN AUTHZ_AUDIT_EVENT_TYPE_HANDLE hAuditEventType, IN PWSTR szOperationType, IN PWSTR szObjectType, IN PWSTR szObjectName, IN PWSTR szAdditionalInfo, OUT PAUTHZ_AUDIT_EVENT_HANDLE phAuditEvent, IN DWORD dwAdditionalParamCount,...)
 
AUTHZAPI BOOL WINAPIV AuthzInitializeObjectAccessAuditEvent2 (IN DWORD Flags, IN AUTHZ_AUDIT_EVENT_TYPE_HANDLE hAuditEventType, IN PWSTR szOperationType, IN PWSTR szObjectType, IN PWSTR szObjectName, IN PWSTR szAdditionalInfo, IN PWSTR szAdditionalInfo2, OUT PAUTHZ_AUDIT_EVENT_HANDLE phAuditEvent, IN DWORD dwAdditionalParameterCount,...)
 
AUTHZAPI BOOL WINAPI AuthzInstallSecurityEventSource (IN DWORD dwFlags, IN PAUTHZ_SOURCE_SCHEMA_REGISTRATION pRegistration)
 
AUTHZAPI BOOL WINAPI AuthzOpenObjectAudit (IN DWORD Flags, IN AUTHZ_CLIENT_CONTEXT_HANDLE hAuthzClientContext, IN PAUTHZ_ACCESS_REQUEST pRequest, IN AUTHZ_AUDIT_EVENT_HANDLE hAuditEvent, IN PSECURITY_DESCRIPTOR pSecurityDescriptor, IN PSECURITY_DESCRIPTOR *SecurityDescriptorArray, IN DWORD SecurityDescriptorCount, OUT PAUTHZ_ACCESS_REPLY pReply)
 
AUTHZAPI BOOL WINAPI AuthzRegisterSecurityEventSource (IN DWORD dwFlags, IN PCWSTR szEventSourceName, IN PAUTHZ_SECURITY_EVENT_PROVIDER_HANDLE phEventProvider)
 
AUTHZAPI BOOL WINAPIV AuthzReportSecurityEvent (IN DWORD dwFlags, IN AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE hEventProvider, IN DWORD dwAuditId, IN PSID pUserSid OPTIONAL, IN DWORD dwCount,...)
 
AUTHZAPI BOOL WINAPI AuthzReportSecurityEventFromParams (IN DWORD dwFlags, IN AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE hEventProvider, IN DWORD dwAuditId, IN PSID pUserSid OPTIONAL, IN PAUDIT_PARAMS pParams)
 
AUTHZAPI BOOL WINAPI AuthzUninstallSecurityEventSource (IN DWORD dwFlags, IN PWSTR szEventSourceName)
 
AUTHZAPI BOOL WINAPI AuthzUnregisterSecurityEventSource (IN DWORD dwFlags, IN OUT PAUTHZ_SECURITY_EVENT_PROVIDER_HANDLE phEventProvider)
 
BOOL WINAPI DllMain (IN HINSTANCE hinstDLL, IN DWORD dwReason, IN LPVOID lpvReserved)
 

Variables

HINSTANCE hDllInstance
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 31 of file authz.c.

Function Documentation

◆ AuthzAccessCheck()

AUTHZAPI BOOL WINAPI AuthzAccessCheck ( IN DWORD  flags,
IN AUTHZ_CLIENT_CONTEXT_HANDLE  AuthzClientContext,
IN PAUTHZ_ACCESS_REQUEST  pRequest,
IN AUTHZ_AUDIT_INFO_HANDLE  AuditInfo,
IN PSECURITY_DESCRIPTOR  pSecurityDescriptor,
IN PSECURITY_DESCRIPTOR OptionalSecurityDescriptorArray,
IN DWORD OptionalSecurityDescriptorCount  OPTIONAL,
IN OUT PAUTHZ_ACCESS_REPLY  pReply,
OUT PAUTHZ_ACCESS_CHECK_RESULTS_HANDLE  pAuthzHandle 
)

Definition at line 42 of file authz.c.

51{
53 return FALSE;
54}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
#define FALSE
Definition: types.h:117

◆ AuthzAddSidsToContext()

AUTHZAPI BOOL WINAPI AuthzAddSidsToContext ( IN AUTHZ_CLIENT_CONTEXT_HANDLE  OrigClientContext,
IN PSID_AND_ATTRIBUTES  Sids,
IN DWORD  SidCount,
IN PSID_AND_ATTRIBUTES  RestrictedSids,
IN DWORD  RestrictedSidCount,
OUT PAUTHZ_CLIENT_CONTEXT_HANDLE  pNewClientContext 
)

Definition at line 63 of file authz.c.

69{
71 return FALSE;
72}

◆ AuthzCachedAccessCheck()

AUTHZAPI BOOL WINAPI AuthzCachedAccessCheck ( IN DWORD  Flags,
IN AUTHZ_ACCESS_CHECK_RESULTS_HANDLE  AuthzHandle,
IN PAUTHZ_ACCESS_REQUEST  pRequest,
IN AUTHZ_AUDIT_EVENT_HANDLE  AuditInfo,
OUT PAUTHZ_ACCESS_REPLY  pReply 
)

Definition at line 81 of file authz.c.

86{
88 return FALSE;
89}

◆ AuthzEnumerateSecurityEventSources()

AUTHZAPI BOOL WINAPI AuthzEnumerateSecurityEventSources ( IN DWORD  dwFlags,
OUT PAUTHZ_SOURCE_SCHEMA_REGISTRATION  Buffer,
OUT PDWORD  pdwCount,
IN OUT PDWORD  pdwLength 
)

Definition at line 98 of file authz.c.

102{
104 return FALSE;
105}

◆ AuthzFreeAuditEvent()

AUTHZAPI BOOL WINAPI AuthzFreeAuditEvent ( IN AUTHZ_AUDIT_EVENT_HANDLE  pAuditEventInfo)

Definition at line 114 of file authz.c.

115{
117 return FALSE;
118}

◆ AuthzFreeHandle()

AUTHZAPI BOOL WINAPI AuthzFreeHandle ( IN AUTHZ_ACCESS_CHECK_RESULTS_HANDLE  AuthzHandle)

Definition at line 127 of file authz.c.

128{
130 return FALSE;
131}

◆ AuthzInitializeContextFromAuthzContext()

AUTHZAPI BOOL WINAPI AuthzInitializeContextFromAuthzContext ( IN DWORD  flags,
IN AUTHZ_CLIENT_CONTEXT_HANDLE  AuthzHandle,
IN PLARGE_INTEGER  ExpirationTime,
IN LUID  Identifier,
IN PVOID  DynamicGroupArgs,
OUT PAUTHZ_CLIENT_CONTEXT_HANDLE  phNewAuthzHandle 
)

Definition at line 140 of file authz.c.

146{
148 return FALSE;
149}

◆ AuthzInitializeContextFromToken()

AUTHZAPI BOOL WINAPI AuthzInitializeContextFromToken ( IN DWORD  Flags,
IN HANDLE  TokenHandle,
IN AUTHZ_RESOURCE_MANAGER_HANDLE  AuthzResourceManager,
IN PLARGE_INTEGER  pExpirationTime,
IN LUID  Identifier,
IN PVOID  DynamicGroupArgs,
OUT PAUTHZ_CLIENT_CONTEXT_HANDLE  pAuthzClientContext 
)

Definition at line 158 of file authz.c.

165{
167 return FALSE;
168}

◆ AuthzInitializeObjectAccessAuditEvent()

AUTHZAPI BOOL WINAPIV AuthzInitializeObjectAccessAuditEvent ( IN DWORD  Flags,
IN AUTHZ_AUDIT_EVENT_TYPE_HANDLE  hAuditEventType,
IN PWSTR  szOperationType,
IN PWSTR  szObjectType,
IN PWSTR  szObjectName,
IN PWSTR  szAdditionalInfo,
OUT PAUTHZ_AUDIT_EVENT_HANDLE  phAuditEvent,
IN DWORD  dwAdditionalParamCount,
  ... 
)

Definition at line 177 of file authz.c.

186{
188 return FALSE;
189}

◆ AuthzInitializeObjectAccessAuditEvent2()

AUTHZAPI BOOL WINAPIV AuthzInitializeObjectAccessAuditEvent2 ( IN DWORD  Flags,
IN AUTHZ_AUDIT_EVENT_TYPE_HANDLE  hAuditEventType,
IN PWSTR  szOperationType,
IN PWSTR  szObjectType,
IN PWSTR  szObjectName,
IN PWSTR  szAdditionalInfo,
IN PWSTR  szAdditionalInfo2,
OUT PAUTHZ_AUDIT_EVENT_HANDLE  phAuditEvent,
IN DWORD  dwAdditionalParameterCount,
  ... 
)

Definition at line 198 of file authz.c.

208{
210 return FALSE;
211}

◆ AuthzInstallSecurityEventSource()

AUTHZAPI BOOL WINAPI AuthzInstallSecurityEventSource ( IN DWORD  dwFlags,
IN PAUTHZ_SOURCE_SCHEMA_REGISTRATION  pRegistration 
)

Definition at line 220 of file authz.c.

222{
224 return FALSE;
225}

◆ AuthzOpenObjectAudit()

AUTHZAPI BOOL WINAPI AuthzOpenObjectAudit ( IN DWORD  Flags,
IN AUTHZ_CLIENT_CONTEXT_HANDLE  hAuthzClientContext,
IN PAUTHZ_ACCESS_REQUEST  pRequest,
IN AUTHZ_AUDIT_EVENT_HANDLE  hAuditEvent,
IN PSECURITY_DESCRIPTOR  pSecurityDescriptor,
IN PSECURITY_DESCRIPTOR SecurityDescriptorArray,
IN DWORD  SecurityDescriptorCount,
OUT PAUTHZ_ACCESS_REPLY  pReply 
)

Definition at line 234 of file authz.c.

242{
244 return FALSE;
245}

◆ AuthzRegisterSecurityEventSource()

AUTHZAPI BOOL WINAPI AuthzRegisterSecurityEventSource ( IN DWORD  dwFlags,
IN PCWSTR  szEventSourceName,
IN PAUTHZ_SECURITY_EVENT_PROVIDER_HANDLE  phEventProvider 
)

Definition at line 254 of file authz.c.

257{
259 return FALSE;
260}

◆ AuthzReportSecurityEvent()

AUTHZAPI BOOL WINAPIV AuthzReportSecurityEvent ( IN DWORD  dwFlags,
IN AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE  hEventProvider,
IN DWORD  dwAuditId,
IN PSID pUserSid  OPTIONAL,
IN DWORD  dwCount,
  ... 
)

Definition at line 269 of file authz.c.

275{
277 return FALSE;
278}

◆ AuthzReportSecurityEventFromParams()

AUTHZAPI BOOL WINAPI AuthzReportSecurityEventFromParams ( IN DWORD  dwFlags,
IN AUTHZ_SECURITY_EVENT_PROVIDER_HANDLE  hEventProvider,
IN DWORD  dwAuditId,
IN PSID pUserSid  OPTIONAL,
IN PAUDIT_PARAMS  pParams 
)

Definition at line 287 of file authz.c.

292{
294 return FALSE;
295}

◆ AuthzUninstallSecurityEventSource()

AUTHZAPI BOOL WINAPI AuthzUninstallSecurityEventSource ( IN DWORD  dwFlags,
IN PWSTR  szEventSourceName 
)

Definition at line 304 of file authz.c.

306{
308 return FALSE;
309}

◆ AuthzUnregisterSecurityEventSource()

AUTHZAPI BOOL WINAPI AuthzUnregisterSecurityEventSource ( IN DWORD  dwFlags,
IN OUT PAUTHZ_SECURITY_EVENT_PROVIDER_HANDLE  phEventProvider 
)

Definition at line 318 of file authz.c.

320{
322 return FALSE;
323}

◆ DllMain()

BOOL WINAPI DllMain ( IN HINSTANCE  hinstDLL,
IN DWORD  dwReason,
IN LPVOID  lpvReserved 
)

@DllMain

Core routine of the Utility Manager's library.

Parameters
[in]hDllInstanceThe entry point instance of the library.
[in]fdwReasonThe reason argument to indicate the motive DllMain is being called.
[in]lpvReservedReserved.
Returns
Returns TRUE when main call initialization has succeeded, FALSE otherwise.

Definition at line 327 of file authz.c.

330{
331 switch (dwReason)
332 {
334 hDllInstance = hinstDLL;
335 break;
336
340 break;
341 }
342 return TRUE;
343}
HINSTANCE hDllInstance
Definition: authz.c:34
DWORD dwReason
Definition: misc.cpp:135
#define TRUE
Definition: types.h:120
#define DLL_THREAD_DETACH
Definition: compat.h:133
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
#define DLL_THREAD_ATTACH
Definition: compat.h:132

Variable Documentation

◆ hDllInstance

HINSTANCE hDllInstance

Definition at line 34 of file authz.c.

Referenced by DllMain().