ITsSbGlobalStore::EnumerateSessions method

Returns an array that contains sessions on the specified provider.

Syntax

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

Parameters

ProviderName

The name of the provider.

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

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

See Also

ITsSbGlobalStore