Source code of Windows XP (NT5)
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.

33 lines
726 B

  1. #ifndef _DRVBASE_H
  2. #define _DRVBASE_H
  3. #include "namellst.h"
  4. #include <objbase.h>
  5. #include <devioctl.h>
  6. class CDisk : public CNamedElem
  7. {
  8. public:
  9. HRESULT Init(LPCWSTR pszElemName);
  10. HRESULT GetDeviceNumber(ULONG* puldeviceNumber);
  11. HRESULT GetDeviceType(DEVICE_TYPE* pdevtype);
  12. protected:
  13. HRESULT _Init();
  14. protected:
  15. CDisk();
  16. public:
  17. static HRESULT Create(CNamedElem** ppelem);
  18. static HRESULT GetFillEnum(CFillEnum** ppfillenum);
  19. protected:
  20. DEVICE_TYPE _devtype;
  21. ULONG _ulDeviceNumber;
  22. ULONG _ulPartitionNumber;
  23. BOOL _fDeviceNumberInited;
  24. };
  25. #endif //_DRVBASE_H