A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/uwp/cpp-ref-for-winrt/error-handling/check-hresult below:

winrt::check_hresult function (C++/WinRT) - Windows UWP applications

winrt::check_hresult function (C++/WinRT)

In this article

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.

Syntax
void 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.

Requirements

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 also

Additional resources

In this article

Was 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