IUserIdentity::GetCookie 方法

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

取得用來唯一識別此使用者身分識別的 Cookie。

語法

HRESULT GetCookie(
  [out] GUID *puidCookie
);

參數

puidCookie [out]

類型: GUID*

GUID值的指標,接收用來唯一識別此使用者身分識別的 Cookie。

傳回值

類型: HRESULT

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

規格需求

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

另請參閱

IUserIdentity

GetOrdinal