devicelist.h

来自「Microsoft Windows驱动程序模型设计 源代码」· C头文件 代码 · 共 49 行

H
49
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?