AuthzInitializeCompoundContext function
The AuthzInitializeCompoundContext function creates a user-mode context from the given user and device security contexts.
Syntax
BOOL WINAPI AuthzInitializeCompoundContext( _In_ AUTHZ_CLIENT_CONTEXT_HANDLE UserContext, _In_ AUTHZ_CLIENT_CONTEXT_HANDLE DeviceContext, _Out_ PAUTHZ_CLIENT_CONTEXT_HANDLE phCompoundContext );
Parameters
- UserContext [in]
-
User context to create the compound context from.
- DeviceContext [in]
-
Device context to create the compound context from. This must not be the same as the user context.
- phCompoundContext [out]
-
Used to return the resultant compound context.
Return value
If the function succeeds, it returns TRUE.
If the function fails, it returns FALSE. To get extended error information, call GetLastError.
Examples
AUTHZ_CLIENT_CONTEXT_HANDLE userContext, deviceContext, compoundContext; // First, initialize userContext and deviceContext using existing // AuthzInitializeContextFromSid or AuthzInitializeContextFromToken calls ... if (FALSE == AuthzInitializeCompoundContext( userContext, deviceContext, &compoundContext)) { return GetLastError(); } // Proceed to use the newly initialized context
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|