ITsSbGlobalStore::QuerySessionBySessionId method (sbtsv.h)
Retrieves the ITsSbSession object associated with the given session ID.
Syntax
HRESULT QuerySessionBySessionId(
[in] BSTR ProviderName,
[in] DWORD dwSessionId,
[in] BSTR TargetName,
[out] ITsSbSession **ppSession
);
Parameters
[in] ProviderName
The resource plug-in provider name that owns the target.
[in] dwSessionId
The session ID.
[in] TargetName
The name of the target computer on which this session is present.
[out] 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
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | sbtsv.h |