SecPkgContext_AuthorityW structure (sspi.h)

The SecPkgContext_Authority structure contains the name of the authenticating authority if one is available. It can be a certification authority (CA) or the name of a server or domain that authenticated the connection. The QueryContextAttributes (General) function uses this structure.


typedef struct _SecPkgContext_AuthorityW {
  SEC_WCHAR *sAuthorityName;
} SecPkgContext_AuthorityW, *PSecPkgContext_AuthorityW;



Pointer to a null-terminated string containing the name of the authenticating authority, if available.



The sspi.h header defines SecPkgContext_Authority as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.


Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header sspi.h (include Security.h)