ITsSbResourcePluginStore::EnumerateSessions method (sbtsv.h)

Enumerates a specified set of sessions.

Syntax

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

Parameters

targetName

The name of the target.

userName

The name of the user account.

userDomain

The domain name of the user account.

poolName

The name of the pool.

initialProgram

The name of the published remote application.

pSessionState

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

pdwCount

Returns a pointer to the number of sessions returned.

ppVal

Returns the list of sessions requested.

Return value

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

Requirements

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

See also

ITsSbResourcePluginStore

ITsSbResourcePluginStoreEx