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.

88 lines
1.7 KiB

  1. //#--------------------------------------------------------------
  2. //
  3. // File: display.h
  4. //
  5. // Synopsis: This file holds the declarations of the
  6. // CDisplay class .The class is responsible
  7. // for displaying the appropriate bitmap on
  8. // the local display
  9. //
  10. // History: 5/28/99
  11. //
  12. // Copyright (C) 1999-2000 Microsoft Corporation
  13. // All rights reserved.
  14. //
  15. //#--------------------------------------------------------------
  16. #ifndef __DISPLAY_H_
  17. #define __DISPLAY_H_
  18. #include "sacom.h"
  19. #define SA_DISPLAY_SHUTTING_DOWN 0x00000002 // OS is shutting down
  20. #define SA_DISPLAY_CHECK_DISK 0x00000010 // autochk.exe is running
  21. class CDisplay
  22. {
  23. public:
  24. //
  25. // constructor
  26. //
  27. CDisplay ()
  28. :m_bInitialized (false),
  29. m_pSaDisplay (NULL)
  30. {
  31. }
  32. //
  33. // destructor
  34. //
  35. ~CDisplay ()
  36. {
  37. m_pSaDisplay = NULL;
  38. }
  39. //
  40. // send the shutting down message to the local display
  41. // a member
  42. //
  43. HRESULT Shutdown ();
  44. //
  45. // send the busy message to the local display
  46. // a member
  47. //
  48. HRESULT Busy ();
  49. //
  50. // lock the driver to prevent writes
  51. //
  52. HRESULT Lock ();
  53. //
  54. // Unlock the driver to allow writes
  55. //
  56. HRESULT Unlock ();
  57. private:
  58. //
  59. // method to carry out the initialization
  60. //
  61. HRESULT InternalInitialize (VOID);
  62. //
  63. // signifies initialized
  64. //
  65. bool m_bInitialized;
  66. //
  67. // handle to helper object
  68. //
  69. CComPtr<ISaDisplay> m_pSaDisplay;
  70. }; // end of CDisplay class declaration
  71. #endif __DISPLAY_H_