IUserIdentityManager::Logoff 方法

[不支援登出 ,未來可能會改變或無法使用。 請改 用使用者帳戶搭配快速使用者切換和遠端桌面。]

已取代。 登出目前的身分識別。

語法

HRESULT Logoff(
  [in] HWND hwndParent
);

參數

hwndParent [in]

類型: HWND

HWND值,識別在登出完成時將帶入前景的視窗。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

規格需求

需求
最低支援的用戶端
Windows 2000 專業版 [僅限傳統型應用程式]
最低支援的伺服器
Windows 2000 Server [僅限傳統型應用程式]
用戶端支援結束
Windows 2000 Professional
伺服器終止支援
Windows 2000 Server
標頭
Msident.h
Idl
Msident.idl
DLL
Msident.dll

另請參閱

IUserIdentityManager

IUserIdentityManager::Logon

IUserIdentityManager::ManageIdentities