ITsSbGlobalStore::QuerySessionBySessionId method (sbtsv.h)

Retrieves the ITsSbSession object associated with the given session ID.

Syntax

HRESULT QuerySessionBySessionId(
  BSTR         ProviderName,
  DWORD        dwSessionId,
  BSTR         TargetName,
  ITsSbSession **ppSession
);

Parameters

ProviderName

The resource plug-in provider name that owns the target.

dwSessionId

The session ID.

TargetName

The name of the target computer on which this session is present.

ppSession

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

Return value

This method can return one of these values.

Remarks

Any changes made to the target objects returned by this method do not affect the target objects stored in Remote Desktop Connection Broker (RD Connection Broker). The target objects returned are copies of the target objects in RD Connection Broker.

Requirements

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

See also

ITsSbGlobalStore