Checks whether a pointer is null and, if so, calls winrt::throw_last_error. Checks whether a code represents an error and, if so, calls winrt::throw_hresult. Checks whether the HRESULT code represents an error and, if so, calls winrt::throw_hresult. winrt::throw_hresult throws an exception using a winrt::hresult_error object (or a standard object) that represents that error code.īecause Windows APIs report run-time errors using various return-value types, there are in addition to winrt::check_bool a handful of other useful helper functions for checking values and throwing exceptions.winrt::throw_last_error calls GetLastError to retrieve the calling thread's last-error code value, and then calls the winrt::throw_hresult function.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |