duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
error_decoder.cpp File Reference

Error decoding and diagnostic utilities implementation. More...

#include <duvc-ctl/utils/error_decoder.h>
#include <iomanip>
#include <sstream>
#include <comdef.h>
#include <dshow.h>
#include <windows.h>
#include <vfwmsgs.h>
Include dependency graph for error_decoder.cpp:

Go to the source code of this file.

Namespaces

namespace  duvc
 

Macros

#define VFW_E_DEVICE_IN_USE   0x80040228L
 

Functions

std::string duvc::decode_system_error (unsigned long error_code)
 Decode system error code to human-readable string.
 
std::string duvc::decode_hresult (HRESULT hr)
 Decode HRESULT to human-readable string.
 
std::string duvc::get_hresult_details (HRESULT hr)
 Get detailed HRESULT information.
 
bool duvc::is_device_error (HRESULT hr)
 Check if HRESULT indicates a device-related error.
 
bool duvc::is_permission_error (HRESULT hr)
 Check if HRESULT indicates permission/access error.
 
std::string duvc::get_diagnostic_info ()
 Get diagnostic information for troubleshooting.
 

Detailed Description

Error decoding and diagnostic utilities implementation.

Definition in file error_decoder.cpp.

Macro Definition Documentation

◆ VFW_E_DEVICE_IN_USE

#define VFW_E_DEVICE_IN_USE   0x80040228L

Definition at line 20 of file error_decoder.cpp.

Referenced by duvc::is_device_error().