ITsSbResourcePluginStore::QuerySessionBySessionId method

Returns the session object that has the specified session ID.

Syntax

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

Parameters

dwSessionId

The session ID.

TargetName

The target name.

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

   
Windows version None supported Windows Server 2012
Target Platform Windows
Header sbtsv.h

See Also

ITsSbResourcePluginStore

ITsSbResourcePluginStoreEx

ITsSbSession