IClientSecurity::QueryBlanket

HRESULT IClientSecurity::QueryBlanket(pProxy, pcbAuthnSvc, pasAuthnSvc, ppAuthInfo, AuthnLevel);

This method returns authentication information. This method is called by the client to find out what authentication information COM will use on calls made from the specified proxy.

Argument

Type

Description

pProxy

void*

This parameter indicates the proxy to query.

PcbAuthnSvc

DWORD*

This parameter indicates the number of entries in the array pasAuthSvc.

PasAuthnSvc

SOLE_AUTHENTICATION
_SERVICE*

This parameter is an array of authentication service, principal name pairs. The first entry is the one that COM will use to make calls to the server. The array is allocated with CoTaskMemAlloc and the application must free it by calling CoTaskMemFree.

ppAuthInfo

RPC_AUTH_IDENTITY
_HANDLE**

This parameter returns the value passed to CoSetProxyAuthenticationInfo. It may be NULL if you do not care.

AuthnLevel

DWORD*

This parameter returns the current authentication level. It may be NULL if you do not care.

Returns

S_OK

Success.

E_INVALIDARG

One or more arguments are invalid.

E_OUTOFMEMORY

Insufficient memory to create the pasAuthnSvc out-parameter.