IVssBackupComponentsEx3::GetSessionId method (vsbackup.h)

Returns the requester's session identifier.

Syntax

HRESULT GetSessionId(
  [out] VSS_ID *idSession
);

Parameters

[out] idSession

A pointer to a variable that receives the session identifier.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The session identifier is an opaque value that uniquely identifies a backup or restore session. It is used to distinguish the current session among multiple parallel backup or restore sessions.

As a best practice, writers and requesters should include the session ID in all diagnostics messages used for event logging and tracing.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header vsbackup.h (include VsBackup.h, Vss.h, VsWriter.h)

See also

CVssWriterEx2::GetSessionId

IVssBackupComponentsEx3