ITsSbResourcePluginStore::EnumerateSessions method (sbtsv.h)

Enumerates a specified set of sessions.


HRESULT EnumerateSessions(
  [in]      BSTR               targetName,
  [in]      BSTR               userName,
  [in]      BSTR               userDomain,
  [in]      BSTR               poolName,
  [in]      BSTR               initialProgram,
  [in]      TSSESSION_STATE    *pSessionState,
  [in, out] DWORD              *pdwCount,
  [out]     ITsSbSession ** [] ppVal


[in] targetName

The name of the target.

[in] userName

The name of the user account.

[in] userDomain

The domain name of the user account.

[in] poolName

The name of the pool.

[in] initialProgram

The name of the published remote application.

[in] pSessionState

A pointer to the TSSESSION_STATE value of the sessions to enumerate.

[in, out] pdwCount

Returns a pointer to the number of sessions returned.

[out] ppVal

Returns the list of sessions requested.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.


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

See also