共用方式為


IMFMediaKeySession::GetError 方法

取得與媒體金鑰會話相關聯的錯誤狀態。

語法

HRESULT GetError(
   USHORT *code,
   DWORD  *systemCode
);

參數

code

錯誤碼。

systemCode

平臺特定錯誤資訊。

傳回值

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

規格需求

需求
最低支援的用戶端
Windows 8.1 [僅限傳統型應用程式]
最低支援的伺服器
Windows Server 2012 R2 [僅限傳統型應用程式]
Idl
Mfmediaengine.idl

另請參閱

IMFMediaKeySession