Share via


ISCPSession::BeginSession (deprecated)

banner art

This is preliminary documentation and subject to change.

This topic documents a feature of the Windows Media Device Manager SDK. We recommend that you migrate your application to use the Windows Portable Devices API. For more information, see the Windows Portable Devices SDK.

The BeginSession method indicates beginning of a transfer session. It can be used to optimize operations that need to occur only once per transfer session.

Syntax

HRESULT BeginSession(
  IMDSPDevice*  pIDevice,
  BYTE*  pCtx,
  DWORD  dwSizeCtx
);

Parameters

pIDevice

[in]  Pointer to an IMDSPDevice object.

pCtx

[in]  Pointer to the context.

dwSizeCtx

[in]  DWORD containing the size of context.

Return Values

If the method succeeds, it returns S_OK. If the method fails, it returns an HRESULT error code.

Requirements

Header: Defined in WMSCP.idl.

Library: mssachlp.lib

See Also