IMFSecureChannel::SetupSession method (mfidl.h)

Passes the encrypted session key to the client.

Syntax

HRESULT SetupSession(
  [in] BYTE  *pbEncryptedSessionKey,
  [in] DWORD cbSessionKey
);

Parameters

[in] pbEncryptedSessionKey

Pointer to a buffer that contains the encrypted session key. This parameter can be NULL.

[in] cbSessionKey

Size of the pbEncryptedSessionKey buffer, in bytes.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFSecureChannel