ISCPSession::BeginSession method (mswmdm.h)

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(
  [in] IMDSPDevice *pIDevice,
  [in] BYTE        *pCtx,
  [in] DWORD       dwSizeCtx
);

Parameters

[in] pIDevice

Pointer to an IMDSPDevice object.

[in] pCtx

Pointer to the context.

[in] dwSizeCtx

DWORD containing the size of context.

Return value

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

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h
Library Mssachlp.lib

See also

ISCPSession Interface