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.

96 lines
3.8 KiB

  1. #ifndef __APP_PROPERTY_RULES_
  2. #define __APP_PROPERTY_RULES_
  3. #ifndef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <windows.h>
  7. //
  8. // Property index defines
  9. //
  10. #define IDX_PROPERTY_GUID 0x00000000
  11. #define IDX_PROPERTY_COMPANYNAME 0x00000001
  12. #define IDX_PROPERTY_SIGNATURE 0x00000002
  13. #define IDX_PROPERTY_VERSIONSTRING 0x00000003
  14. #define IDX_PROPERTY_ROOTPATH 0x00000004
  15. #define IDX_PROPERTY_SETUPROOTPATH 0x00000005
  16. #define IDX_PROPERTY_STATE 0x00000006
  17. #define IDX_PROPERTY_CATEGORY 0x00000007
  18. #define IDX_PROPERTY_ESTIMATEDINSTALLKILOBYTES 0x00000008
  19. #define IDX_PROPERTY_NONREMOVABLEKILOBYTES 0x00000009
  20. #define IDX_PROPERTY_REMOVABLEKILOBYTES 0x0000000a
  21. #define IDX_PROPERTY_EXECUTECMDLINE 0x0000000b
  22. #define IDX_PROPERTY_DOWNSIZECMDLINE 0x0000000c
  23. #define IDX_PROPERTY_REINSTALLCMDLINE 0x0000000d
  24. #define IDX_PROPERTY_UNINSTALLCMDLINE 0x0000000e
  25. #define IDX_PROPERTY_SELFTESTCMDLINE 0x0000000f
  26. #define IDX_PROPERTY_INSTALLDATE 0x00000010
  27. #define IDX_PROPERTY_LASTUSEDDATE 0x00000011
  28. #define IDX_PROPERTY_TITLEURL 0x00000012
  29. #define IDX_PROPERTY_PUBLISHERURL 0x00000013
  30. #define IDX_PROPERTY_DEVELOPERURL 0x00000014
  31. #define IDX_PROPERTY_PIN 0x00000015
  32. #define IDX_PROPERTY_DEVICEGUID 0x00000016
  33. #define IDX_PROPERTY_XMLINFOFILE 0x00000017
  34. #define IDX_PROPERTY_DEFAULTSETUPEXECMDLINE 0x00000018
  35. #define PROPERTY_COUNT 0x00000019
  36. #define INVALID_PROPERTY_INDEX 0xffffffff
  37. //
  38. // Property string IDs
  39. //
  40. #define APP_STRING_NONE 0xffffffff
  41. #define APP_STRING_CRYPTO 0x00000000
  42. #define APP_STRING_COMPANYNAME 0x00000001
  43. #define APP_STRING_SIGNATURE 0x00000002
  44. #define APP_STRING_VERSION 0x00000003
  45. #define APP_STRING_APPROOTPATH 0x00000004
  46. #define APP_STRING_SETUPROOTPATH 0x00000005
  47. #define APP_STRING_DOCROOTPATH 0x00000006
  48. #define APP_STRING_EXECUTECMDLINE 0x00000007
  49. #define APP_STRING_PATCHCMDLINE 0x00000008
  50. #define APP_STRING_DOWNSIZECMDLINE 0x00000009
  51. #define APP_STRING_REINSTALLCMDLINE 0x0000000a
  52. #define APP_STRING_UNINSTALLCMDLINE 0x0000000b
  53. #define APP_STRING_SELFTESTCMDLINE 0x0000000c
  54. #define APP_STRING_TITLEURL 0x0000000d
  55. #define APP_STRING_PUBLISHERURL 0x0000000e
  56. #define APP_STRING_DEVELOPERURL 0x0000000f
  57. #define APP_STRING_XMLINFOFILE 0x00000010
  58. #define APP_STRING_DEFAULTSETUPEXECMDLINE 0x00000011
  59. #define APP_STRING_COUNT 0x00000012
  60. //////////////////////////////////////////////////////////////////////////////////////////////
  61. typedef struct
  62. {
  63. DWORD dwProperty;
  64. DWORD dwLowPropertyMask;
  65. DWORD dwHighPropertyMask;
  66. DWORD dwWriteMask;
  67. DWORD dwReadMask;
  68. DWORD dwMaxLen;
  69. DWORD dwStringId;
  70. } PROPERTY_INFO, *LPPROPERTY_INFO;
  71. //////////////////////////////////////////////////////////////////////////////////////////////
  72. extern PROPERTY_INFO gPropertyInfo[PROPERTY_COUNT];
  73. //////////////////////////////////////////////////////////////////////////////////////////////
  74. extern void InitializePropertyRules(void);
  75. //////////////////////////////////////////////////////////////////////////////////////////////
  76. #ifndef __cplusplus
  77. }
  78. #endif
  79. #endif // __APP_PROPERTY_RULES_