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.

50 lines
1.3 KiB

  1. // welcome.h: interface for the CDataSource class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #pragma once
  5. #define ARM_CHANGESCREEN WM_USER + 1
  6. // Forced to define these myself because they weren't on Win95.
  7. #undef StrRChr
  8. #undef StrChr
  9. LPSTR StrRChr(LPCSTR lpStart, LPCSTR lpEnd, WORD wMatch);
  10. LPSTR StrChr(LPCSTR lpStart, WORD wMatch);
  11. #include "dataitem.h"
  12. // Relative Version
  13. enum RELVER
  14. {
  15. VER_UNKNOWN, // we haven't checked the version yet
  16. VER_INCOMPATIBLE, // the current os cannot be upgraded using this CD (i.e. win32s)
  17. VER_OLDER, // current os is an older version on NT or is win9x
  18. VER_SAME, // current os is the same version as the CD
  19. VER_NEWER, // the CD contains a newer version of the OS
  20. };
  21. class CDataSource
  22. {
  23. public:
  24. CDataItem m_data[9];
  25. int m_iItems;
  26. RELVER m_Version;
  27. CDataSource();
  28. ~CDataSource();
  29. bool Init();
  30. CDataItem & operator [] ( int i );
  31. void Invoke( int i, HWND hwnd );
  32. void Uninit( DWORD dwData );
  33. void ShowSplashScreen(HWND hwnd);
  34. bool DisplayErrorMessage(int ids);
  35. protected:
  36. HWND m_hwndDlg;
  37. const int *m_piScreen; //pointer to array of menu items on the screen
  38. BOOL IsNec98();
  39. };