A helper function that checks whether an HRESULT code represents an error and, if so, calls the winrt::throw_hresult function to throw an exception that represents the error code. Also see winrt::hresult_error.
Syntaxvoid check_hresult(HRESULT const result);
Parameters
result
An HRESULT code, which may be a success code or an error code. An exception is thrown only if result
is an error code.
Minimum supported SDK: Windows SDK version 10.0.17134.0 (Windows 10, version 1803)
Namespace: winrt
Header: %WindowsSdkDir%Include<WindowsTargetPlatformVersion>\cppwinrt\winrt\base.h (included by default)
See alsoWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4