ITsSbResourcePluginStore::QuerySessionBySessionId method (sbtsv.h)
Returns the session object that has the specified session ID.
Syntax
HRESULT QuerySessionBySessionId(
[in] DWORD dwSessionId,
[in] BSTR TargetName,
[out] ITsSbSession **ppSession
);
Parameters
[in] dwSessionId
The session ID.
[in] TargetName
The target name.
[out] ppSession
A pointer to a pointer to an ITsSbSession 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.
Remarks
A resource plug-in can use this method to retrieve a session object. Unlike the global store, the resource plug-in store does not copy the session object retrieved because the resource plug-in owns the session object.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 |
Target Platform | Windows |
Header | sbtsv.h |