47 lines
897 B
C
47 lines
897 B
C
|
#include "namellst.h"
|
||
|
|
||
|
#include "hwdev.h"
|
||
|
|
||
|
#include "cmmn.h"
|
||
|
#include "misc.h"
|
||
|
|
||
|
class CMiscDeviceInterface : public CNamedElem
|
||
|
{
|
||
|
public:
|
||
|
// CNamedElem
|
||
|
HRESULT Init(LPCWSTR pszElemName);
|
||
|
|
||
|
// CMiscDeviceInterface
|
||
|
HRESULT InitInterfaceGUID(const GUID* pguidInterface);
|
||
|
HRESULT GetHWDeviceInst(CHWDeviceInst** pphwdevinst);
|
||
|
|
||
|
public:
|
||
|
static HRESULT Create(CNamedElem** ppelem);
|
||
|
|
||
|
public:
|
||
|
CMiscDeviceInterface();
|
||
|
~CMiscDeviceInterface();
|
||
|
|
||
|
private:
|
||
|
CHWDeviceInst _hwdevinst;
|
||
|
};
|
||
|
|
||
|
class CMiscDeviceNode : public CNamedElem
|
||
|
{
|
||
|
public:
|
||
|
// CNamedElem
|
||
|
HRESULT Init(LPCWSTR pszElemName);
|
||
|
|
||
|
// CMiscDeviceNode
|
||
|
HRESULT GetHWDeviceInst(CHWDeviceInst** pphwdevinst);
|
||
|
|
||
|
public:
|
||
|
static HRESULT Create(CNamedElem** ppelem);
|
||
|
|
||
|
public:
|
||
|
CMiscDeviceNode();
|
||
|
~CMiscDeviceNode();
|
||
|
|
||
|
private:
|
||
|
CHWDeviceInst _hwdevinst;
|
||
|
};
|