AuthzGetInformationFromContext function

The AuthzGetInformationFromContext function returns information about an Authz context.

Starting with Windows Server 2012 and Windows 8, device groups are returned as a TOKEN_GROUPS structure. User and device claims are returned as an AUTHZ_SECURITY_ATTRIBUTES_INFORMATION structure.

Syntax

AUTHZAPI BOOL AuthzGetInformationFromContext(
  AUTHZ_CLIENT_CONTEXT_HANDLE     hAuthzClientContext,
  AUTHZ_CONTEXT_INFORMATION_CLASS InfoClass,
  DWORD                           BufferSize,
  PDWORD                          pSizeRequired,
  PVOID                           Buffer
);

Parameters

hAuthzClientContext

A handle to the context.

InfoClass

A value of the AUTHZ_CONTEXT_INFORMATION_CLASS enumeration that indicates the type of information to be returned.

BufferSize

Size of the buffer passed.

pSizeRequired

A pointer to a DWORD of the buffer size required for returning the structure.

Buffer

A pointer to memory that can receive the information. The structure returned depends on the information requested in the InfoClass parameter.

Return Value

If the function succeeds, it returns TRUE.

If the function fails, it returns FALSE. To get extended error information, call GetLastError.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header authz.h
Library Authz.lib
DLL Authz.dll
Redistributable Windows Server 2003 Administration Tools Pack on Windows XP

See Also

AUTHZ_CONTEXT_INFORMATION_CLASS

AUTHZ_SECURITY_ATTRIBUTES_INFORMATION

Basic Access Control Functions

TOKEN_GROUPS