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.

53 lines
1.1 KiB

  1. #pragma once
  2. #include "fusionbuffer.h"
  3. class CAssemblyRecoveryInfo;
  4. class CSXSMediaPromptDialog
  5. {
  6. public:
  7. enum DialogResults
  8. {
  9. DialogCancelled = 1,
  10. DialogMediaFound = 2,
  11. DialogUnknown = 3
  12. };
  13. private:
  14. const CCodebaseInformation* m_CodebaseInfo;
  15. bool m_fIsCDROM;
  16. CStringBuffer m_buffCodebaseInfo;
  17. HWND m_hOurWnd;
  18. PVOID m_pvDeviceChange;
  19. UINT m_uiAutoRunMsg;
  20. DWORD m_DeviceChangeMask;
  21. DWORD m_DeviceChangeFlags;
  22. BOOL DisplayMessage(HWND hw, UINT uContentText, UINT uDialogFlags, int &riResult);
  23. static
  24. INT_PTR
  25. CALLBACK
  26. OurDialogProc(
  27. HWND hDlg,
  28. UINT uMsg,
  29. WPARAM wParam,
  30. LPARAM lParam
  31. );
  32. public:
  33. CSXSMediaPromptDialog();
  34. ~CSXSMediaPromptDialog();
  35. BOOL Initialize(
  36. const CCodebaseInformation* CodebaseInfo
  37. );
  38. BOOL ShowSelf(DialogResults &rResultsOut);
  39. private:
  40. CSXSMediaPromptDialog(const CSXSMediaPromptDialog &);
  41. void operator =(const CSXSMediaPromptDialog &);
  42. };