Namespaces | Macros | Typedefs | Functions
win-helpers.cpp File Reference
#include "../types.h"
#include "win-helpers.h"
#include <Cfgmgr32.h>
#include <usbioctl.h>
#include <SetupAPI.h>
#include <comdef.h>
#include <atlstr.h>
#include <Windows.h>
#include <string>
#include <regex>
#include <Sddl.h>
#include <initguid.h>
#include <devpkey.h>
Include dependency graph for win-helpers.cpp:

Go to the source code of this file.

Namespaces

 librealsense
 
 librealsense::platform
 

Macros

#define CREATE_MUTEX_RETRY_NUM   (5)
 
#define MAX_HANDLES   64
 

Typedefs

typedef ULONG(__stdcall * librealsense::platform::fnRtlGetVersion) (PRTL_OSVERSIONINFOW lpVersionInformation)
 

Functions

bool librealsense::platform::check (const char *call, HRESULT hr, bool to_throw)
 
 DEFINE_GUID (GUID_DEVINTERFACE_USB_DEVICE, 0xA5DCBF10L, 0x6530, 0x11D2, 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED)
 
 DEFINE_GUID (GUID_DEVINTERFACE_IMAGE_WIN10, 0x6bdd1fc6L, 0x810f, 0x11d0, 0xbe, 0xc7, 0x08, 0x00, 0x2b, 0xe2, 0x09, 0x2f)
 
 DEFINE_GUID (GUID_DEVINTERFACE_CAMERA_WIN10, 0xca3e7ab9, 0xb4c3, 0x4ae6, 0x82, 0x51, 0x57, 0x9e, 0xf9, 0x33, 0x89, 0x0f)
 
 DEFINE_GUID (GUID_DEVINTERFACE_IMAGE_WIN7, 0xe659c3ec, 0xbf3c, 0x48a5, 0x81, 0x92, 0x30, 0x73, 0xe8, 0x22, 0xd7, 0xcd)
 
 DEFINE_GUID (GUID_DEVINTERFACE_CAMERA_WIN7, 0x50537bc3, 0x2919, 0x452d, 0x88, 0xa9, 0xb1, 0x3b, 0xbf, 0x7d, 0x24, 0x59)
 
bool librealsense::platform::get_id (DEVINST devinst, std::string *p_out_str)
 
std::string librealsense::platform::get_id (DEVINST devinst)
 
std::wstring librealsense::platform::get_path (HANDLE h, ULONG index)
 
bool librealsense::platform::get_usb_descriptors (uint16_t device_vid, uint16_t device_pid, const std::string &device_uid, std::string &location, usb_spec &spec, std::string &serial)
 
bool librealsense::platform::get_usb_device_descriptors (DEVINST devinst, uint16_t device_vid, uint16_t device_pid, const std::string &device_uid, std::string &location, usb_spec &spec, std::string &serial, std::string &parent_uid)
 
bool librealsense::platform::handle_node (const std::wstring &targetKey, HANDLE h, ULONG index)
 
std::tuple< std::string, usb_spec > librealsense::platform::handle_usb_hub (const std::wstring &targetKey, const std::wstring &path)
 
std::string librealsense::platform::hr_to_string (HRESULT hr)
 
std::wstring librealsense::platform::instance_id_from_device_path (LPCWSTR path)
 
bool librealsense::platform::is_win10_redstone2 ()
 
PSECURITY_DESCRIPTOR librealsense::platform::make_allow_all_security_descriptor (void)
 
bool librealsense::platform::parse_usb_path_from_device_id (uint16_t &vid, uint16_t &pid, uint16_t &mi, std::string &unique_id, const std::string &device_id)
 
bool librealsense::platform::parse_usb_path_multiple_interface (uint16_t &vid, uint16_t &pid, uint16_t &mi, std::string &unique_id, const std::string &path, std::string &device_guid)
 
bool librealsense::platform::parse_usb_path_single_interface (uint16_t &vid, uint16_t &pid, std::string &serial, const std::string &path)
 
std::vector< std::stringlibrealsense::platform::tokenize (std::string string, char separator)
 
template<typename T >
size_t librealsense::platform::vector_bytes_size (const typename std::vector< T > &vec)
 
std::string librealsense::platform::win_to_utf (const WCHAR *s)
 

Macro Definition Documentation

#define CREATE_MUTEX_RETRY_NUM   (5)

Definition at line 41 of file win-helpers.cpp.

#define MAX_HANDLES   64

Definition at line 724 of file win-helpers.cpp.

Function Documentation

DEFINE_GUID ( GUID_DEVINTERFACE_USB_DEVICE  ,
0xA5DCBF10L  ,
0x6530  ,
0x11D2  ,
0x90  ,
0x1F  ,
0x00  ,
0xC0  ,
0x4F  ,
0xB9  ,
0x51  ,
0xED   
)
DEFINE_GUID ( GUID_DEVINTERFACE_IMAGE_WIN10  ,
0x6bdd1fc6L  ,
0x810f  ,
0x11d0  ,
0xbe  ,
0xc7  ,
0x08  ,
0x00  ,
0x2b  ,
0xe2  ,
0x09  ,
0x2f   
)
DEFINE_GUID ( GUID_DEVINTERFACE_CAMERA_WIN10  ,
0xca3e7ab9  ,
0xb4c3  ,
0x4ae6  ,
0x82  ,
0x51  ,
0x57  ,
0x9e  ,
0xf9  ,
0x33  ,
0x89  ,
0x0f   
)
DEFINE_GUID ( GUID_DEVINTERFACE_IMAGE_WIN7  ,
0xe659c3ec  ,
0xbf3c  ,
0x48a5  ,
0x81  ,
0x92  ,
0x30  ,
0x73  ,
0xe8  ,
0x22  ,
0xd7  ,
0xcd   
)
DEFINE_GUID ( GUID_DEVINTERFACE_CAMERA_WIN7  ,
0x50537bc3  ,
0x2919  ,
0x452d  ,
0x88  ,
0xa9  ,
0xb1  ,
0x3b  ,
0xbf  ,
0x7d  ,
0x24  ,
0x59   
)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:31