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

Windows device hotplug detection implementation. More...

#include <windows.h>
#include <dbt.h>
#include <dshow.h>
#include <duvc-ctl/core/device.h>
#include <duvc-ctl/detail/com_helpers.h>
#include <duvc-ctl/utils/logging.h>
Include dependency graph for device_monitor.cpp:

Go to the source code of this file.

Namespaces

namespace  duvc
 

Functions

static LRESULT CALLBACK duvc::device_notification_wndproc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 Window procedure for handling device change notifications.
 
static bool duvc::register_notification_window_class ()
 Register window class for device notifications.
 
static HWND duvc::create_notification_window ()
 Create invisible window for receiving device notifications.
 
static HDEVNOTIFY duvc::register_device_notifications (HWND hwnd)
 Register for device interface notifications.
 
void duvc::register_device_change_callback (DeviceChangeCallback callback)
 Register callback for device hotplug events.
 
void duvc::unregister_device_change_callback ()
 Unregister device change callback.
 

Detailed Description

Windows device hotplug detection implementation.

Definition in file device_monitor.cpp.