Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
943 B

  1. #include "namellst.h"
  2. #include "hwdev.h"
  3. #include "cmmn.h"
  4. #include "misc.h"
  5. class CMiscDeviceInterface : public CNamedElem
  6. {
  7. public:
  8. // CNamedElem
  9. HRESULT Init(LPCWSTR pszElemName);
  10. // CMiscDeviceInterface
  11. HRESULT InitInterfaceGUID(const GUID* pguidInterface);
  12. HRESULT GetHWDeviceInst(CHWDeviceInst** pphwdevinst);
  13. public:
  14. static HRESULT Create(CNamedElem** ppelem);
  15. public:
  16. CMiscDeviceInterface();
  17. ~CMiscDeviceInterface();
  18. private:
  19. CHWDeviceInst _hwdevinst;
  20. };
  21. class CMiscDeviceNode : public CNamedElem
  22. {
  23. public:
  24. // CNamedElem
  25. HRESULT Init(LPCWSTR pszElemName);
  26. // CMiscDeviceNode
  27. HRESULT GetHWDeviceInst(CHWDeviceInst** pphwdevinst);
  28. public:
  29. static HRESULT Create(CNamedElem** ppelem);
  30. public:
  31. CMiscDeviceNode();
  32. ~CMiscDeviceNode();
  33. private:
  34. CHWDeviceInst _hwdevinst;
  35. };