ITsSbResourcePluginStore::EnumerateSessions method

Enumerates a specified set of sessions.

Syntax


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, size_is(*pdwCount)] ITsSbSession    **ppVal[]
);

Parameters

targetName [in]

The name of the target.

userName [in]

The name of the user account.

userDomain [in]

The domain name of the user account.

poolName [in]

The name of the pool.

initialProgram [in]

The name of the published remote application.

pSessionState [in]

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

pdwCount [in, out]

Returns a pointer to the number of sessions returned.

ppVal [out]

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

IDL

Sbtsv.idl

IID

IID_ITsSbResourcePluginStore is defined as 5c38f65f-bcf1-4036-a6bf-9e3cccae0b63

IID_ITsSbResourcePluginStoreEx is defined as 80b83ffd-625d-11e5-bea1-a0481c7e9064

See also

ITsSbResourcePluginStoreEx
ITsSbResourcePluginStore

 

 

Show: