Retrieves authentication information.
HRESULT QueryBlanket(
void* pProxy , |
//Location for the proxy to query |
DWORD* pAuthnSvc , |
//Location for the current authentication service |
DWORD* pAuthzSvc , |
//Location for the current authorization service |
OLECHAR ** pServerPrincName , |
//Location for the current principal name |
DWORD * pAuthnLevel , |
//Location for the current authentication level |
DWORD * pImpLevel , |
//Location for the current impersonation level |
RPC_AUTH_IDENTITY_HANDLE ** ppAuthInfo , |
//Location for the value passed to IClientSecurity::SetBlanket |
DWORD ** pCapabilities |
//Location for flags indicating further capabilities of the proxy |
); |
Parameter
[out] Pointer to a DWORD value defining the current authentication service. This will be a single value taken from the list of RPC_C_AUTHN_xxx constants. May be NULL, in which case the current authentication service is not retrieved.
Return Values
Remarks
IClientSecurity::QueryBlanket is called by the client to retrieve the authentication information COM will use on calls made from the specified proxy. With a pointer to an interface on the proxy, the client would first call QueryInterface for a pointer to IClientSecurity, then, with this pointer, would call IClientSecurity::QueryBlanket, followed by releasing the pointer. This sequence of calls is encapsulated in the helper function CoQueryProxyBlanket.
See Also