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.

32 lines
734 B

  1. #include "namellst.h"
  2. #include "cmmn.h"
  3. #include "misc.h"
  4. #include <objbase.h>
  5. ///////////////////////////////////////////////////////////////////////////////
  6. //
  7. //
  8. ///////////////////////////////////////////////////////////////////////////////
  9. class CMtPt : public CNamedElem
  10. {
  11. public:
  12. // CNamedElem
  13. HRESULT Init(LPCWSTR pszElemName);
  14. // CMtPt
  15. HRESULT InitVolume(LPCWSTR pszDeviceIDVolume);
  16. HRESULT GetVolumeName(LPWSTR pszDeviceIDVolume, DWORD cchDeviceIDVolume);
  17. public:
  18. static HRESULT Create(CNamedElem** ppelem);
  19. public:
  20. CMtPt();
  21. ~CMtPt();
  22. private:
  23. // Drive that host this volume (might be null, in this case no autoplay)
  24. WCHAR _szDeviceIDVolume[MAX_DEVICEID];
  25. };