3.3.4.1.15 RpcGetSessionType (Opnum 16)

The RpcGetSessionType method gets the type associated with the specified session. No special permissions are required to call this method.<149>

 HRESULT RpcGetSessionType(
   [in] handle_t hBinding,
   [in] LONG* SessionId,
   [out] ULONG* pSessionType
 );

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

SessionId: The identifier of the session whose type is being retrieved.

pSessionType: The type of the session as defined in SESSIONTYPE (section 2.2.1.18).

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.