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.

42 lines
1.1 KiB

  1. //
  2. // Copyright (c) 1996 - 1999 Microsoft Corporation. All Rights Reserved.
  3. //
  4. #ifndef __CMediaHandler__h
  5. #define __CMediaHandler__h
  6. #include "msgwindow.h"
  7. class CMSWebDVD;
  8. //
  9. // Specific code
  10. //
  11. class CMediaHandler : public CMsgWindow
  12. {
  13. typedef CMsgWindow ParentClass ;
  14. public:
  15. CMediaHandler();
  16. ~CMediaHandler() ;
  17. virtual LRESULT WndProc( UINT uMsg, WPARAM wParam, LPARAM lParam );
  18. bool WasEjected() const { return m_ejected; };
  19. bool WasInserted() const { return m_inserted; };
  20. void ClearFlags();
  21. bool SetDrive( TCHAR tcDriveLetter );
  22. // currently unused by the pump thread, but it will be required if the ejection
  23. // handler becomes a new thread
  24. HANDLE GetEventHandle() const;
  25. void SetDVD(CMSWebDVD* pDVD) {m_pDVD = pDVD;};
  26. private:
  27. DWORD m_driveMask;
  28. bool m_ejected;
  29. bool m_inserted;
  30. CMSWebDVD* m_pDVD;
  31. };
  32. #endif