ITsSbProvider::CreateSessionObject method (sbtsv.h)

Plug-ins can use the CreateSessionObject method to create an ITsSbSession session object.

Syntax

HRESULT CreateSessionObject(
  [in]  BSTR         TargetName,
  [in]  BSTR         UserName,
  [in]  BSTR         Domain,
  [in]  DWORD        SessionId,
  [out] ITsSbSession **ppSession
);

Parameters

[in] TargetName

A BSTR variable that contains the target name.

[in] UserName

A BSTR variable that contains the user name.

[in] Domain

A BSTR variable that contains the domain.

[in] SessionId

A DWORD variable that contains the session ID.

[out] ppSession

A pointer to a pointer to the new session object. When you have finished using the object, release it by calling the Release method.

Return value

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

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012
Target Platform Windows
Header sbtsv.h

See also

ITsSbProvider

ITsSbSession