3.3.4.1.14 RpcGetLoggedOnCount (Opnum 15)
The RpcGetLoggedOnCount method gets the number of user-connected and device-connected sessions. No special permissions are required to call this method.
-
HRESULT RpcGetLoggedOnCount( [in] handle_t hBinding, [out] ULONG* pUserSessions, [out] ULONG* pDeviceSessions );
hBinding: The RPC binding handle. For more information, see [MSDN-RPCBIND].
pUserSessions: The number of sessions that are of SESSIONTYPE_REGULARDESKTOP, or SESSIONTYPE_ALTERNATESHELL, or SESSIONTYPE_REMOTEAPP as defined in SESSIONTYPE (section 2.2.1.18).
pDeviceSessions: The number of sessions connected using media center extender device only. These sessions are of SESSIONTYPE_MEDIACENTEREXT as defined in SESSIONTYPE (section 2.2.1.18). For more information on media center, see [MSFT-WINMCE].
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.