共用方式為


_com_error::HRESULTToWCode

Microsoft 特定的

將 32 位元的 HRESULT 對應至 16 位元的 wCode

語法

static WORD HRESULTToWCode(
   HRESULT hr
) throw();

參數

hr
要對應至 16 位 的 32 位 HRESULTwCode

傳回值

16 位 wCode ,從 32 位 HRESULT對應。

備註

如需詳細資訊,請參閱_com_error::WCode

END Microsoft 特定的

另請參閱

_com_error::WCode
_com_error::WCodeToHRESULT
_com_error 類別