TwiceAsNice
2019-02-18
|
namespace with helper functions for windows usb and win32api funcitons More...
Functions | |
bool | EnumerateDevice (const uint16_t DeviceNum, HDEVINFO &deviceInfo, SP_DEVICE_INTERFACE_DATA &interfaceData, std::string &errMsg) |
std::string | GetLastWinError () |
bool | Search4UsbDevice (const uint16_t DeviceNum) |
void | FetchUsbDevicePath (const uint16_t DeviceNum, CString &path) |
void | FetchUsbDriverVersion (const uint16_t DeviceNum, std::string &version) |
void | GetVidAndPid (const uint16_t DeviceNum, uint16_t &vid, uint16_t &pid) |
std::vector< std::vector< uint16_t > > | GetDevicesWin () |
bool | IsDeviceAlreadyOpen (uint16_t deviceNum) |
namespace with helper functions for windows usb and win32api funcitons
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright(c) 2009 Apogee Instruments, Inc.
bool windozeHelpers::EnumerateDevice | ( | const uint16_t | DeviceNum, |
HDEVINFO & | deviceInfo, | ||
SP_DEVICE_INTERFACE_DATA & | interfaceData, | ||
std::string & | errMsg | ||
) |
Returns the UNC path for the Apogee device at the input DeviceNum. Throws a std::runtime exception if the device is not found.
[in] | DeviceNum | Device number to look for |
[out] | path | UNC device path |
std::vector< std::vector<uint16_t> > windozeHelpers::GetDevicesWin | ( | ) |
std::string windozeHelpers::GetLastWinError | ( | ) |
Returns the result of the GetLastError function call as a std::string