AuthzInitializeResourceManager function

The AuthzInitializeResourceManager function uses Authz to verify that clients have access to various resources.

Syntax

AUTHZAPI BOOL AuthzInitializeResourceManager(
  DWORD                            Flags,
  PFN_AUTHZ_DYNAMIC_ACCESS_CHECK   pfnDynamicAccessCheck,
  PFN_AUTHZ_COMPUTE_DYNAMIC_GROUPS pfnComputeDynamicGroups,
  PFN_AUTHZ_FREE_DYNAMIC_GROUPS    pfnFreeDynamicGroups,
  PCWSTR                           szResourceManagerName,
  PAUTHZ_RESOURCE_MANAGER_HANDLE   phAuthzResourceManager
);

Parameters

Flags

TBD

pfnDynamicAccessCheck

TBD

pfnComputeDynamicGroups

A pointer to the AuthzComputeGroupsCallback callback function called by the resource manager during initialization of an AuthzClientContext handle. This parameter can be NULL if no callback function is used to compute dynamic groups.

pfnFreeDynamicGroups

A pointer to the AuthzFreeGroupsCallback callback function called by the resource manager to free security identifier (SID) attribute arrays allocated by the compute dynamic groups callback. This parameter can be NULL if no callback function is used to compute dynamic groups.

szResourceManagerName

A string that identifies the resource manager. This parameter can be NULL if the resource manager does not need a name.

phAuthzResourceManager

A pointer to the returned resource manager handle. When you have finished using the handle, free it by calling the AuthzFreeResourceManager function.

Return Value

If the function succeeds, the function returns a nonzero value.

If the function fails, it returns a zero value. To get extended error information, call GetLastError.

Requirements

   
Windows version Windows XP [desktop apps only] Windows Server 2003 [desktop apps only]
Target Platform Windows
Header authz.h
Library Authz.lib
DLL Authz.dll

See Also

AuthzAccessCheck

AuthzCachedAccessCheck

AuthzFreeResourceManager

Basic Access Control Functions