duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
error_decoder.h
Go to the documentation of this file.
1#pragma once
2
8#include <string>
9
10#ifdef _WIN32
11#include <windows.h>
12#endif
13
14namespace duvc {
15
21std::string decode_system_error(unsigned long error_code);
22
23#ifdef _WIN32
29std::string decode_hresult(HRESULT hr);
30
36std::string get_hresult_details(HRESULT hr);
37
43bool is_device_error(HRESULT hr);
44
50bool is_permission_error(HRESULT hr);
51#endif
52
57std::string get_diagnostic_info();
58
59} // namespace duvc
Definition core.h:13
bool is_permission_error(HRESULT hr)
Check if HRESULT indicates permission/access error.
bool is_device_error(HRESULT hr)
Check if HRESULT indicates a device-related error.
std::string get_hresult_details(HRESULT hr)
Get detailed HRESULT information.
std::string get_diagnostic_info()
Get diagnostic information for troubleshooting.
std::string decode_hresult(HRESULT hr)
Decode HRESULT to human-readable string.
std::string decode_system_error(unsigned long error_code)
Decode system error code to human-readable string.