Source code of Windows XP (NT5)
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.

42 lines
8.1 KiB

  1. #include <windows.h>
  2. #include "ApplicationManager.h"
  3. #include "AppPropertyRules.h"
  4. #define NEVER 0
  5. //
  6. // Property info array
  7. //
  8. extern PROPERTY_INFO gPropertyInfo[PROPERTY_COUNT] =
  9. {
  10. /* IDX_PROPERTY_GUID */ { APP_PROPERTY_GUID, 0x00000000, 0x00000001, CURRENT_ACTION_NONE, INIT_LEVEL_NONE | INIT_LEVEL_TOTAL, sizeof(GUID), APP_STRING_NONE },
  11. /* IDX_PROPERTY_COMPANYNAME */ { APP_PROPERTY_COMPANYNAME, 0x00000000, 0x00000002, CURRENT_ACTION_NONE, INIT_LEVEL_NONE | INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_COMPANYNAME_CHARCOUNT, APP_STRING_COMPANYNAME },
  12. /* IDX_PROPERTY_SIGNATURE */ { APP_PROPERTY_SIGNATURE, 0x00000000, 0x00000004, CURRENT_ACTION_NONE, INIT_LEVEL_NONE | INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_SIGNATURE_CHARCOUNT, APP_STRING_SIGNATURE },
  13. /* IDX_PROPERTY_VERSIONSTRING */ { APP_PROPERTY_VERSIONSTRING, 0x00000000, 0x00000008, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_NONE | INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_VERSIONSTRING_CHARCOUNT, APP_STRING_VERSION },
  14. /* IDX_PROPERTY_ROOTPATH */ { APP_PROPERTY_ROOTPATH, 0x00000000, 0x00000010, CURRENT_ACTION_NONE, INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_APPROOTPATH },
  15. /* IDX_PROPERTY_SETUPROOTPATH */ { APP_PROPERTY_SETUPROOTPATH, 0x00000000, 0x00000020, NEVER, INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_SETUPROOTPATH },
  16. /* IDX_PROPERTY_STATE */ { APP_PROPERTY_STATE, 0x00000000, 0x00000040, CURRENT_ACTION_INSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, sizeof(DWORD), APP_STRING_NONE },
  17. /* IDX_PROPERTY_CATEGORY */ { APP_PROPERTY_CATEGORY, 0x00000000, 0x00000080, CURRENT_ACTION_NONE, INIT_LEVEL_NONE | INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, sizeof(DWORD), APP_STRING_NONE },
  18. /* IDX_PROPERTY_ESTIMATEDINSTALLKILOBYTES */ { APP_PROPERTY_ESTIMATEDINSTALLKILOBYTES, 0x00000000, 0x00000100, CURRENT_ACTION_NONE | CURRENT_ACTION_SELFTESTING, INIT_LEVEL_NONE | INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, sizeof(DWORD), APP_STRING_NONE },
  19. /* IDX_PROPERTY_NONREMOVABLEKILOBYTES */ { APP_PROPERTY_NONREMOVABLEKILOBYTES, 0x00000000, 0x00000200, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, sizeof(DWORD), APP_STRING_NONE },
  20. /* IDX_PROPERTY_REMOVABLEKILOBYTES */ { APP_PROPERTY_REMOVABLEKILOBYTES, 0x00000000, 0x00000400, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_DOWNSIZING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, sizeof(DWORD), APP_STRING_NONE },
  21. /* IDX_PROPERTY_EXECUTECMDLINE */ { APP_PROPERTY_EXECUTECMDLINE, 0x00000000, 0x00000800, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_EXECUTECMDLINE },
  22. /* IDX_PROPERTY_DOWNSIZECMDLINE */ { APP_PROPERTY_DOWNSIZECMDLINE, 0x00000000, 0x00001000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_DOWNSIZECMDLINE },
  23. /* IDX_PROPERTY_REINSTALLCMDLINE */ { APP_PROPERTY_REINSTALLCMDLINE, 0x00000000, 0x00002000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_REINSTALLCMDLINE },
  24. /* IDX_PROPERTY_UNINSTALLCMDLINE */ { APP_PROPERTY_UNINSTALLCMDLINE, 0x00000000, 0x00004000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_UNINSTALLCMDLINE },
  25. /* IDX_PROPERTY_SELFTESTCMDLINE */ { APP_PROPERTY_SELFTESTCMDLINE, 0x00000000, 0x00008000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_SELFTESTCMDLINE },
  26. /* IDX_PROPERTY_INSTALLDATE */ { APP_PROPERTY_INSTALLDATE, 0x00000000, 0x00040000, NEVER, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, sizeof(SYSTEMTIME), APP_STRING_NONE },
  27. /* IDX_PROPERTY_LASTUSEDDATE */ { APP_PROPERTY_LASTUSEDDATE, 0x00000000, 0x00080000, NEVER, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, sizeof(SYSTEMTIME), APP_STRING_NONE },
  28. /* IDX_PROPERTY_TITLEURL */ { APP_PROPERTY_TITLEURL, 0x00000000, 0x00100000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_TITLEURL },
  29. /* IDX_PROPERTY_PUBLISHERURL */ { APP_PROPERTY_PUBLISHERURL, 0x00000000, 0x00200000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_PUBLISHERURL },
  30. /* IDX_PROPERTY_DEVELOPERURL */ { APP_PROPERTY_DEVELOPERURL, 0x00000000, 0x00400000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_DEVELOPERURL },
  31. /* IDX_PROPERTY_PIN */ { APP_PROPERTY_PIN, 0x00000000, 0x00800000, NEVER, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, sizeof(DWORD), APP_STRING_NONE },
  32. /* IDX_PROPERTY_DEVICEGUID */ { 0, 0x00000000, 0x01000000, NEVER, NEVER, sizeof(GUID), APP_STRING_NONE },
  33. /* IDX_PROPERTY_XMLINFOFILE */ { APP_PROPERTY_XMLINFOFILE, 0x00000000, 0x02000000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_XMLINFOFILE },
  34. /* IDX_PROPERTY_DEFAULTSETUPEXECMDLINE */ { APP_PROPERTY_DEFAULTSETUPEXECMDLINE, 0x00000000, 0x04000000, CURRENT_ACTION_INSTALLING | CURRENT_ACTION_REINSTALLING, INIT_LEVEL_BASIC | INIT_LEVEL_TOTAL, MAX_PATH_CHARCOUNT, APP_STRING_DEFAULTSETUPEXECMDLINE }
  35. };
  36. extern void InitializePropertyRules(void)
  37. {
  38. }