Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 933 Bytes

com-error-hresulttowcode.md

File metadata and controls

42 lines (29 loc) · 933 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: _com_error::HRESULTToWCode
_com_error::HRESULTToWCode
11/17/2022
COMDEF/_com_error::HRESULTToWCode
_com_error::HRESULTToWCode
_com_error HRESULTToWCode method [C++]
ff3789f5-1047-41a0-b7e3-86dd8f638dba

_com_error::HRESULTToWCode

Microsoft Specific

Maps 32-bit HRESULT to 16-bit wCode.

Syntax

static WORD HRESULTToWCode(
   HRESULT hr
) throw();

Parameters

hr
The 32-bit HRESULT to be mapped to 16-bit wCode.

Return value

16-bit wCode mapped from the 32-bit HRESULT.

Remarks

For more information, see _com_error::WCode.

END Microsoft Specific

See also

_com_error::WCode
_com_error::WCodeToHRESULT
_com_error class