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.

64 lines
1.2 KiB

  1. // Copyright (C) 1997-2000 Microsoft Corporation
  2. //
  3. // get syskey on diskette for replica from media page
  4. //
  5. // 25 Apr 2000 sburns
  6. #ifndef SYSKEYDISKDIALOG_HPP_INCLUDED
  7. #define SYSKEYDISKDIALOG_HPP_INCLUDED
  8. class SyskeyDiskDialog : public Dialog
  9. {
  10. public:
  11. SyskeyDiskDialog();
  12. virtual ~SyskeyDiskDialog();
  13. // Attempts to locate the syskey file on A:. If it is not found, return
  14. // E_FAIL. If it is, update the global state object with the location, and
  15. // return S_OK.
  16. //
  17. // hwnd - If hwnd is non-null, then on failure, complain to the user about
  18. // the failure. If null, remain silent about the failure.
  19. static
  20. HRESULT
  21. LocateSyskey(HWND hwnd);
  22. protected:
  23. // Dialog overrides
  24. virtual
  25. bool
  26. OnCommand(
  27. HWND windowFrom,
  28. unsigned controlIDFrom,
  29. unsigned code);
  30. virtual
  31. void
  32. OnInit();
  33. private:
  34. bool
  35. Validate();
  36. // not defined; no copying allowed
  37. SyskeyDiskDialog(const SyskeyDiskDialog&);
  38. const SyskeyDiskDialog& operator=(const SyskeyDiskDialog&);
  39. };
  40. #endif // SYSKEYDISKDIALOG_HPP_INCLUDED