ITsSbGlobalStore::EnumerateSessions method (sbtsv.h)

Returns an array that contains sessions on the specified provider.

Syntax

HRESULT EnumerateSessions(
  [in]      BSTR               ProviderName,
  [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
);

Parameters

[in] ProviderName

The name of the provider.

[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.

Requirements

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

See also

ITsSbGlobalStore