Skip to content

Latest commit

 

History

History
106 lines (80 loc) · 3.08 KB

nf-sensevts-isenslogon2-sessiondisconnect.md

File metadata and controls

106 lines (80 loc) · 3.08 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:sensevts.ISensLogon2.SessionDisconnect
ISensLogon2::SessionDisconnect (sensevts.h)
The SessionDisconnect method is used to disconnect from a Fast User Switching session or a Remote Desktop Connection. This is different from logging off from a session, because when you use this method the session is disconnected.
ISensLogon2 interface [SENS]
SessionDisconnect method
ISensLogon2.SessionDisconnect
ISensLogon2::SessionDisconnect
SessionDisconnect
SessionDisconnect method [SENS]
SessionDisconnect method [SENS]
ISensLogon2 interface
_zaw_isenslogon2_sessiondisconnect
sens.isenslogon2_sessiondisconnect
sensevts/ISensLogon2::SessionDisconnect
syncmgr.isenslogon2_sessiondisconnect
sens\isenslogon2_sessiondisconnect.htm
Sens
afa56cb1-7c52-48db-ac7c-237cb49cc97f
12/05/2018
ISensLogon2 interface [SENS],SessionDisconnect method, ISensLogon2.SessionDisconnect, ISensLogon2::SessionDisconnect, SessionDisconnect, SessionDisconnect method [SENS], SessionDisconnect method [SENS],ISensLogon2 interface, _zaw_isenslogon2_sessiondisconnect, sens.isenslogon2_sessiondisconnect, sensevts/ISensLogon2::SessionDisconnect, syncmgr.isenslogon2_sessiondisconnect
sensevts.h
Windows
Windows XP [desktop apps only]
Windows Server 2003 [desktop apps only]
Sensevts.tlb
Sens.dll
Windows
19H1
ISensLogon2::SessionDisconnect
sensevts/ISensLogon2::SessionDisconnect
c++
APIRef
kbSyntax
COM
Sens.dll
ISensLogon2.SessionDisconnect

ISensLogon2::SessionDisconnect

-description

The SessionDisconnect method is used to disconnect from a Fast User Switching session or a Remote Desktop Connection. This is different from logging off from a session, because when you use this method the session is disconnected.

-parameters

-param bstrUserName [in]

The name of a current user.

-param dwSessionId [in]

The session identifier of a session.

-returns

This method can return one of these values.

Return code Description
S_OK
The method returns successfully.

-remarks

SENS calls this method to notify an application that a session is disconnected.

-see-also

About System Event Notification Service

ISensLogon2

ISensLogon::Logoff

Terminal Services