
Public Member Functions | |
| void | CheckState () |
| Checks if the device is still available. | |
| bool | Connect () |
| Creates a file handle to the device. | |
| void | Disconnect () |
| Closes the file handle to the device. | |
| bool | FindDevicePath (unsigned short Index) |
| Uses windows SetupDi functions to find the unique path to the USB device. | |
| IOBase (const IOBase &Orig) | |
| Copy constructor. | |
| IOBase () | |
| Constructor. | |
| IOBase & | operator= (const IOBase &Orig) |
| Assignment operator. | |
| ~IOBase () | |
| Destructor. | |
Protected Attributes | |
| HANDLE | m_hFile |
| File handle to the device. | |
| std::wstring | m_Path |
| The unique device path that identifies the device in the device manager. | |
| EasyUSB::Detail::IOBase::IOBase | ( | ) |
Constructor.
| EasyUSB::Detail::IOBase::IOBase | ( | const IOBase & | Orig | ) |
Copy constructor.
| EasyUSB::Detail::IOBase::~IOBase | ( | ) |
Destructor.
| void EasyUSB::Detail::IOBase::CheckState | ( | ) |
Checks if the device is still available.
| DeviceNotAvailable | The device is no longer connected. |
| bool EasyUSB::Detail::IOBase::Connect | ( | ) |
Creates a file handle to the device.
| void EasyUSB::Detail::IOBase::Disconnect | ( | ) |
Closes the file handle to the device.
| bool EasyUSB::Detail::IOBase::FindDevicePath | ( | unsigned short | Index | ) |
Uses windows SetupDi functions to find the unique path to the USB device.
| Index | The index of all EasyUSB devices connected, starting from 0. |
| NotEnoughMemory | Not enough memory to complete the operation. |
HANDLE EasyUSB::Detail::IOBase::m_hFile [protected] |
File handle to the device.
std::wstring EasyUSB::Detail::IOBase::m_Path [protected] |
The unique device path that identifies the device in the device manager.
1.5.6