⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 devicelist.h

📁 获得当前连接到电脑的USB设备的详细信息 Device Description Hardware Id Compatible Ids Service Class ClassGuid
💻 H
字号:
// DeviceList.h - Interface to CDeviceList class
// Copyright (C) 1999 by Walter Oney
// All rights reserved

#ifndef DEVICELIST_H
#define DEVICELIST_H

///////////////////////////////////////////////////////////////////////////////

enum DEVPROP {
	DeviceDescription,
	HardwareId,
	CompatibleIds,
	Service,
	Class,
	ClassGuid,
	Driver,
	Manufacturer,
	FriendlyName,
	Enumerator,
	};

class CDeviceListEntry
{								// class CDeviceListEntry
public:
	CDeviceListEntry(LPCTSTR linkname, LPCTSTR friendlyname);
	CDeviceListEntry(){}

	CString		m_linkname;
	CString		m_friendlyname;

	CString	GetProperty(enum DEVPROP prop);
};								// class CDeviceListEntry

///////////////////////////////////////////////////////////////////////////////

class CDeviceList
{								// class CDeviceList
public:
	CDeviceList(const GUID& guid);
	~CDeviceList();

	GUID	m_guid;				// the interface GUID for this list
	CArray<CDeviceListEntry, CDeviceListEntry&> m_list;	// list of devices

	int		Initialize();
};								// class CDeviceList


#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -