ITsSbGlobalStore::QuerySessionBySessionId method (sbtsv.h)
Retrieves the ITsSbSession object associated with the given session ID.
HRESULT QuerySessionBySessionId( BSTR ProviderName, DWORD dwSessionId, BSTR TargetName, ITsSbSession **ppSession );
The resource plug-in provider name that owns the target.
The session ID.
The name of the target computer on which this session is present.
A pointer to a pointer to a session object. When you have finished using the object, release it by calling the Release method.
This method can return one of these values.
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.
|Minimum supported client||None supported|
|Minimum supported server||Windows Server 2012|