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.

252 lines
5.4 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. spsif.h
  5. Abstract:
  6. Header file for section names and other data used for indexing into
  7. setup information files.
  8. Author:
  9. Ted Miller (tedm) 31-August-1993
  10. Revision History:
  11. --*/
  12. #ifndef _SPSIF_
  13. #define _SPSIF_
  14. //
  15. // Field indices for hardware-related sections in txtsetup.sif
  16. //
  17. // in [Map.<Component>] sections
  18. #define INDEX_MAP_FWID 0
  19. // in [<Component>] sections
  20. #define INDEX_DESCRIPTION 0
  21. #define INDEX_FILESECTION 1
  22. #define INDEX_INFKEYNAME 2
  23. #define INDEX_FIRSTAUXFIELD 3
  24. //
  25. // Macro to determine whether a string is present in a SIF.
  26. //
  27. #define SIF_SPECIFIED(string) ((string) && *(string))
  28. extern PWSTR SIF_DISKDRIVERMAP;
  29. //
  30. // Media description and file placement
  31. //
  32. extern PWSTR SIF_SETUPMEDIA;
  33. extern PWSTR SIF_FILESONSETUPMEDIA;
  34. //
  35. // defines to index into SIF_FILESONSETUPMEDIA section
  36. //
  37. #define INDEX_WHICHMEDIA 0
  38. #define INDEX_WHICHBOOTMEDIA 6
  39. #define INDEX_DESTINATION 7
  40. #define INDEX_UPGRADE 8
  41. #define INDEX_WINNTFILE 9
  42. #define INDEX_TARGETNAME 10
  43. //
  44. // File copy lists
  45. //
  46. extern PWSTR SIF_SYSPARTCOPYALWAYS;
  47. extern PWSTR SIF_SYSPARTROOT;
  48. extern PWSTR SIF_SYSPARTUTIL;
  49. extern PWSTR SIF_SPECIALFILES;
  50. extern PWSTR SIF_MPKERNEL;
  51. extern PWSTR SIF_UPKERNEL;
  52. extern PWSTR SIF_ATDISK;
  53. extern PWSTR SIF_ABIOSDISK;
  54. extern PWSTR SIF_MOUSECLASS;
  55. extern PWSTR SIF_KEYBOARDCLASS;
  56. extern PWSTR SIF_HAL;
  57. extern PWSTR SIF_BOOTVID;
  58. extern PWSTR SIF_BOOTBUSEXTENDERS;
  59. extern PWSTR SIF_BUSEXTENDERS;
  60. extern PWSTR SIF_INPUTDEVICESSUPPORT;
  61. extern PWSTR SIF_NTDETECT;
  62. extern PWSTR SIF_STANDARD;
  63. extern PWSTR SIF_KEYBOARDLAYOUTFILES;
  64. extern PWSTR SIF_KEYBOARDLAYOUTDESC;
  65. extern PWSTR SIF_VGAFILES;
  66. extern PWSTR SIF_NTDIRECTORIES;
  67. extern PWSTR SIF_SCSICLASSDRIVERS;
  68. extern PWSTR SIF_DISKDRIVERS;
  69. extern PWSTR SIF_CDROMDRIVERS;
  70. extern PWSTR SIF_FILESYSTEMS;
  71. extern PWSTR SIF_KEYBOARDLAYOUT;
  72. #if defined(REMOTE_BOOT)
  73. extern PWSTR SIF_REMOTEBOOTFILES;
  74. #endif // defined(REMOTE_BOOT)
  75. extern PWSTR SIF_SETUPDATA;
  76. extern PWSTR SIF_DISKSPACEREQUIREMENTS;
  77. extern PWSTR SIF_PRODUCTTYPE;
  78. extern PWSTR SIF_MAJORVERSION;
  79. extern PWSTR SIF_MINORVERSION;
  80. extern PWSTR SIF_WINDIRSPACE;
  81. extern PWSTR SIF_FREESYSPARTDISKSPACE;
  82. extern PWSTR SIF_DEFAULTPATH;
  83. extern PWSTR SIF_LOADIDENTIFIER;
  84. extern PWSTR SIF_BASEVIDEOLOADID;
  85. extern PWSTR SIF_OSLOADOPTIONS;
  86. extern PWSTR SIF_OSLOADOPTIONSVAR;
  87. extern PWSTR SIF_OSLOADOPTIONSVARAPPEND;
  88. extern PWSTR SIF_SETUPSOURCEDEVICE;
  89. extern PWSTR SIF_SETUPSOURCEPATH;
  90. extern PWSTR SIF_DONTCOPY;
  91. extern PWSTR SIF_REQUIREDMEMORY;
  92. extern PWSTR SIF_SETUPCMDPREPEND;
  93. extern PWSTR SIF_PAGEFILE;
  94. extern PWSTR SIF_NLS;
  95. extern PWSTR SIF_ANSICODEPAGE;
  96. extern PWSTR SIF_OEMCODEPAGE;
  97. extern PWSTR SIF_MACCODEPAGE;
  98. extern PWSTR SIF_UNICODECASETABLE;
  99. extern PWSTR SIF_OEMHALFONT;
  100. extern PWSTR SIF_DEFAULTLAYOUT;
  101. extern PWSTR SIF_REPAIRWINNTFILES;
  102. extern PWSTR SIF_REPAIRSYSPARTFILES;
  103. //
  104. // Upgrade sections, values
  105. //
  106. extern PWSTR SIF_NET_SERVICES_TO_DISABLE;
  107. extern PWSTR SIF_KEYS_TO_DELETE;
  108. extern PWSTR SIF_KEYS_TO_ADD;
  109. extern PWSTR SIF_SYSTEM_HIVE;
  110. extern PWSTR SIF_SOFTWARE_HIVE;
  111. extern PWSTR SIF_DEFAULT_HIVE;
  112. extern PWSTR SIF_CONTROL_SET;
  113. extern PWSTR SIF_REG_SZ;
  114. extern PWSTR SIF_REG_DWORD;
  115. extern PWSTR SIF_REG_EXPAND_SZ;
  116. extern PWSTR SIF_REG_MULTI_SZ;
  117. extern PWSTR SIF_REG_BINARY;
  118. extern PWSTR SIF_REG_BINARY_DWORD;
  119. extern PWSTR SIF_FILESDELETEONUPGRADE;
  120. extern PWSTR SIF_FILESBACKUPONUPGRADE;
  121. extern PWSTR SIF_FILESBACKUPONOVERWRITE;
  122. extern PWSTR SIF_DIRSDELETEONUPGRADE;
  123. #ifdef _X86_
  124. extern PWSTR SIF_FILESMOVEBEFOREMIGRATION;
  125. extern PWSTR SIF_FILESDELETEBEFOREMIGRATION;
  126. #endif
  127. extern PWSTR SIF_FILESUPGRADEWIN31;
  128. extern PWSTR SIF_FILESNEWHIVES;
  129. //
  130. // New sections and keys added to setup.log
  131. //
  132. extern PWSTR SIF_NEW_REPAIR_WINNTFILES;
  133. extern PWSTR SIF_NEW_REPAIR_SYSPARTFILES;
  134. extern PWSTR SIF_NEW_REPAIR_SIGNATURE;
  135. extern PWSTR SIF_NEW_REPAIR_VERSION_KEY;
  136. extern PWSTR SIF_NEW_REPAIR_NT_VERSION_TEMPLATE;
  137. extern PWSTR SIF_NEW_REPAIR_NT_VERSION;
  138. extern PWSTR SIF_NEW_REPAIR_PATHS;
  139. extern PWSTR SIF_NEW_REPAIR_PATHS_SYSTEM_PARTITION_DEVICE;
  140. extern PWSTR SIF_NEW_REPAIR_PATHS_SYSTEM_PARTITION_DIRECTORY;
  141. extern PWSTR SIF_NEW_REPAIR_PATHS_TARGET_DEVICE;
  142. extern PWSTR SIF_NEW_REPAIR_PATHS_TARGET_DIRECTORY;
  143. extern PWSTR SETUP_REPAIR_DIRECTORY;
  144. extern PWSTR SETUP_LOG_FILENAME;
  145. extern PWSTR SIF_NEW_REPAIR_FILES_IN_REPAIR_DIR;
  146. extern PWSTR SIF_DATA;
  147. extern PWSTR SIF_UNATTENDED;
  148. extern PWSTR SIF_SETUPPARAMS;
  149. extern PWSTR SIF_CONFIRMHW;
  150. extern PWSTR SIF_GUI_UNATTENDED;
  151. extern PWSTR SIF_UNATTENDED_INF_FILE;
  152. extern PWSTR SIF_UNIQUEID;
  153. extern PWSTR SIF_EXTENDOEMPART;
  154. extern PWSTR SIF_ACCESSIBILITY;
  155. extern PWSTR SIF_REMOTEINSTALL;
  156. #if defined(REMOTE_BOOT)
  157. extern PWSTR SIF_REMOTEBOOT;
  158. extern PWSTR SIF_ENABLEIPSECURITY;
  159. #endif // defined(REMOTE_BOOT)
  160. extern PWSTR SIF_REPARTITION;
  161. extern PWSTR SIF_USEWHOLEDISK;
  162. //
  163. // Alternate Source data
  164. //
  165. extern PWSTR SIF_UPDATEDSOURCES;
  166. //extern PWSTR SIF_ALTCOPYFILESSECTION;
  167. extern PWSTR SIF_INCOMPATIBLE_TEXTMODE;
  168. PWSTR
  169. SpPlatformSpecificLookup(
  170. IN PVOID SifHandle,
  171. IN PWSTR Section,
  172. IN PWSTR Key,
  173. IN ULONG Index,
  174. IN BOOLEAN Fatal
  175. );
  176. PWSTR
  177. SpLookUpTargetDirectory(
  178. IN PVOID SifHandle,
  179. IN PWSTR Symbol
  180. );
  181. PWSTR
  182. SpLookUpValueForFile(
  183. IN PVOID SifHandle,
  184. IN PWSTR File,
  185. IN ULONG Index,
  186. IN BOOLEAN Fatal
  187. );
  188. BOOLEAN
  189. IsFileFlagSet(
  190. IN PVOID SifHandle,
  191. IN PWSTR FileName,
  192. IN ULONG Flag
  193. );
  194. #endif // ndef _SPSIF_
  195.