GetBrowserToken

Gets a browser token from the CardSpace system.

HRESULT
___stdcall GetBrowserToken(
                    __in    DWORD   dwParamType,
                    __in    PVOID   pParam,
                    __out_opt    DWORD*  pcbToken,
                     __out_bcount_opt(*pcbToken)    PBYTE*  ppToken );

Parameters

Parameter Description

dwParamType

Specifies the data type of pParam.

When dwParamType is RECIPIENTPOLICYV1, pParam must point to a RECIPIENTPOLICY structure.

pParam

Pointer to the parameter. The type of data depends on dwParamType.

pcbToken

Pointer to the buffer in which to receive the size of the token.

ppToken

Pointer to receive the pointer to the buffer. When you have finished using this buffer, free it using the Win32 GlobalFree function.

Property Value/Return Value

HRESULT.

Requirements

Windows Vista

Header: Declared in infocard.h.

Library: Use infocardapi.lib.

See Also

Concepts

HRESULTS Returned

Copyright © 2007 by Microsoft Corporation. All rights reserved.