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.

71 lines
2.0 KiB

  1. //-------------------------------------------------------------------
  2. //
  3. // FILE: Special.hpp
  4. //
  5. // Summary;
  6. // This file contians the definitions of Special Dialogs functions
  7. //
  8. // Entry Points;
  9. //
  10. // History;
  11. // Jun-26-95 MikeMi Created
  12. //
  13. //-------------------------------------------------------------------
  14. #ifndef __SPECIAL_HPP__
  15. #define __SPECIAL_HPP__
  16. // currently we support one special version for msdn,
  17. // when others are needed, just copy the group below for each version
  18. //
  19. // define MSDNVERSION to build for this version
  20. #ifdef MSDNVERSION
  21. #define SPECIALVERSION
  22. #define IDS_SPECVER_WARNING IDS_MSDN_NOTAVAILABLE
  23. #define IDS_SPECVER_TEXT1 IDS_MSDN_TEXT1
  24. #define IDS_SPECVER_TEXT2 IDS_MSDN_TEXT2
  25. #define SPECIAL_MODE LICMODE_PERSERVER
  26. #define SPECIAL_USERS 5
  27. #endif
  28. // define NFRVERSION to build for this version
  29. #ifdef NFRVERSION
  30. #define SPECIALVERSION
  31. #define IDS_SPECVER_WARNING IDS_NFR_NOTAVAILABLE
  32. #define IDS_SPECVER_TEXT1 IDS_NFR_TEXT1
  33. #define IDS_SPECVER_TEXT2 IDS_NFR_TEXT2
  34. #define SPECIAL_MODE LICMODE_PERSERVER
  35. #ifndef SPECIAL_USERS
  36. # define SPECIAL_USERS 5
  37. #endif
  38. #endif
  39. #define REGKEY_LICENSEINFO_SBS L"System\\CurrentControlSet\\Services\\LicenseInfoSuites\\SmallBusiness"
  40. #define REGVAL_CONCURRENT_LIMIT L"ConcurrentLimit"
  41. #define DEFAULT_SPECIAL_USERS 5
  42. #define SAM_NFR_LICENSE_COUNT 2
  43. typedef struct _SPECIALVERSIONINFO {
  44. UINT idsSpecVerWarning;
  45. UINT idsSpecVerText1;
  46. UINT idsSpecVerText2;
  47. DWORD dwSpecialUsers;
  48. LICENSE_MODE lmSpecialMode;
  49. } SPECIALVERSIONINFO, * LPSPECIALVERSIONINFO;
  50. extern SPECIALVERSIONINFO gSpecVerInfo;
  51. extern void InitSpecialVersionInfo( VOID );
  52. extern void RaiseNotAvailWarning( HWND hwndCPL );
  53. extern INT_PTR SpecialSetupDialog( HWND hwndParent, SETUPDLGPARAM& dlgParam );
  54. extern DWORD GetSpecialUsers( VOID );
  55. extern BOOL IsRestrictedSmallBusSrv( VOID );
  56. #endif