3.3.4.1.16 RpcGetSessionInformationEx (Opnum 17)

The RpcGetSessionInformationEx method retrieves extended information about a specified session running on a terminal server.<150> The caller MUST have WINSTATION_QUERY permission for the session. The method checks whether the caller has WINSTATION_QUERY permission (section 3.1.1) by setting it as the Access Request mask, and fails if the caller does not have the permission.

 HRESULT RpcGetSessionInformationEx(
   [in] handle_t hBinding,
   [in] LONG SessionId,
   [in] DWORD Level,
   [ref, out] PLSMSESSIONINFORMATION_EX LSMSessionInfoExPtr
 );

hBinding: The RPC binding handle. For more information, see [MSDN-RPCBIND].

Level: The level of the information to be retrieved. This MUST be 1.

LSMSessionInfoExPtr: A PLSMSESSIONINFORMATION_EX element containing information about the session.

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.