windows-nt/Source/XPSP1/NT/shell/services/hdsrv/shhwdtct/miscdev.h
2020-09-26 16:20:57 +08:00

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;
};