3.3.4.3.7 RpcFilterBySessionType (Opnum 6)

The RpcFilterBySessionType method adds a filter to the session enumeration result, running on a terminal server, based on the type of the session. This method MUST be called after RpcOpenEnum and before RpcGetEnumResult or RpcGetEnumResultEx. No special permissions are required to call this method.

 HRESULT RpcFilterBySessionType(
   [in] ENUM_HANDLE hEnum,
   [in] GUID* pSessionType
 );

hEnum:  The handle to the session enumeration object. This is of type ENUM_HANDLE.

pSessionType: The session GUID to be used to filter out the enumeration result. Only the session with the specified GUID will be returned.

Return Values:  The method MUST return S_OK (0x00000000) on success; otherwise, it MUST return an implementation-specific negative value.

Return value/code

Description

0x00000000

S_OK

Successful completion.