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.

26 lines
666 B

  1. //-----------------------------------------------------------------------------------------
  2. //
  3. // Singleton class that encapsulates the OCM callbacks
  4. //
  5. #pragma once
  6. #include <windows.h>
  7. #include <windef.h>
  8. #include <tchar.h>
  9. #include <setupapi.h>
  10. #include "ocmanage.h"
  11. class COCMCallback
  12. {
  13. public:
  14. static void SetOCMRoutines( POCMANAGER_ROUTINES pOCMRoutines );
  15. static void SetProgressText( LPCTSTR szText );
  16. static void AdvanceTickGauge();
  17. static void SetReboot();
  18. static DWORD QuerySelectionState( LPCTSTR szSubcomponentName, bool &bSelected );
  19. private:
  20. static OCMANAGER_ROUTINES m_OCMRoutines;
  21. static bool m_bInitialized;
  22. };