Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 #ifndef _INC_REGSTR
      7 #define _INC_REGSTR
      8 
      9 #define REGSTR_KEY_CLASS TEXT("Class")
     10 #define REGSTR_KEY_CONFIG TEXT("Config")
     11 #define REGSTR_KEY_ENUM TEXT("Enum")
     12 #define REGSTR_KEY_ROOTENUM TEXT("Root")
     13 #define REGSTR_KEY_BIOSENUM TEXT("BIOS")
     14 #define REGSTR_KEY_ACPIENUM TEXT("ACPI")
     15 #define REGSTR_KEY_PCMCIAENUM TEXT("PCMCIA")
     16 #define REGSTR_KEY_PCIENUM TEXT("PCI")
     17 #define REGSTR_KEY_VPOWERDENUM TEXT("VPOWERD")
     18 #ifndef NEC_98
     19 #define REGSTR_KEY_ISAENUM TEXT("ISAPnP")
     20 #define REGSTR_KEY_EISAENUM TEXT("EISA")
     21 #else
     22 #define REGSTR_KEY_ISAENUM TEXT("C98PnP")
     23 #define REGSTR_KEY_EISAENUM TEXT("NESA")
     24 #endif
     25 #define REGSTR_KEY_LOGCONFIG TEXT("LogConfig")
     26 #define REGSTR_KEY_SYSTEMBOARD TEXT("*PNP0C01")
     27 #define REGSTR_KEY_APM TEXT("*PNP0C05")
     28 
     29 #define REGSTR_KEY_INIUPDATE TEXT("IniUpdate")
     30 #define REG_KEY_INSTDEV TEXT("Installed")
     31 
     32 #define REGSTR_KEY_DOSOPTCDROM TEXT("CD-ROM")
     33 #define REGSTR_KEY_DOSOPTMOUSE TEXT("MOUSE")
     34 
     35 #define REGSTR_KEY_KNOWNDOCKINGSTATES TEXT("Hardware Profiles")
     36 #define REGSTR_KEY_DEVICEPARAMETERS TEXT("Device Parameters")
     37 
     38 #define REGSTR_DEFAULT_INSTANCE TEXT("0000")
     39 #define REGSTR_PATH_MOTHERBOARD REGSTR_KEY_SYSTEMBOARD TEXT("\\") REGSTR_DEFAULT_INSTANCE
     40 #define REGSTR_PATH_SETUP TEXT("Software\\Microsoft\\Windows\\CurrentVersion")
     41 #define REGSTR_PATH_DRIVERSIGN TEXT("Software\\Microsoft\\Driver Signing")
     42 #define REGSTR_PATH_NONDRIVERSIGN TEXT("Software\\Microsoft\\Non-Driver Signing")
     43 #define REGSTR_PATH_DRIVERSIGN_POLICY TEXT("Software\\Policies\\Microsoft\\Windows NT\\Driver Signing")
     44 #define REGSTR_PATH_NONDRIVERSIGN_POLICY TEXT("Software\\Policies\\Microsoft\\Windows NT\\Non-Driver Signing")
     45 #define REGSTR_PATH_PIFCONVERT TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\PIFConvert")
     46 #define REGSTR_PATH_MSDOSOPTS TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\MS-DOSOptions")
     47 #define REGSTR_PATH_NOSUGGMSDOS TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\NoMSDOSWarn")
     48 #define REGSTR_PATH_NEWDOSBOX TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\MS-DOSSpecialConfig")
     49 #define REGSTR_PATH_RUNONCE TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce")
     50 #define REGSTR_PATH_RUNONCEEX TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\RunOnceEx")
     51 #define REGSTR_PATH_RUN TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Run")
     52 #define REGSTR_PATH_RUNSERVICESONCE TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\RunServicesOnce")
     53 #define REGSTR_PATH_RUNSERVICES TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\RunServices")
     54 #define REGSTR_PATH_EXPLORER TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer")
     55 #define REGSTR_PATH_DETECT TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Detect")
     56 #define REGSTR_PATH_APPPATHS TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\App Paths")
     57 #define REGSTR_PATH_UNINSTALL TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")
     58 #define REGSTR_PATH_REALMODENET TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Network\\Real Mode Net")
     59 #define REGSTR_PATH_NETEQUIV TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Network\\Equivalent")
     60 #define REGSTR_PATH_CVNETWORK TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Network")
     61 #define REGSTR_PATH_WMI_SECURITY TEXT("System\\CurrentControlSet\\Control\\Wmi\\Security")
     62 #define REGSTR_PATH_RELIABILITY TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Reliability")
     63 #define REGSTR_PATH_RELIABILITY_POLICY TEXT("Software\\Policies\\Microsoft\\Windows NT\\Reliability")
     64 #define REGSTR_PATH_RELIABILITY_POLICY_SHUTDOWNREASONUI TEXT("ShutdownReasonUI")
     65 #define REGSTR_PATH_RELIABILITY_POLICY_SNAPSHOT TEXT("Snapshot")
     66 #define REGSTR_PATH_RELIABILITY_POLICY_REPORTSNAPSHOT TEXT("ReportSnapshot")
     67 
     68 #define REGSTR_PATH_REINSTALL TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Reinstall")
     69 #define REGSTR_PATH_NT_CURRENTVERSION TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion")
     70 
     71 #define REGSTR_PATH_VOLUMECACHE TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\VolumeCaches")
     72 #define REGSTR_VAL_DISPLAY TEXT("display")
     73 
     74 #define REGSTR_PATH_IDCONFIGDB TEXT("System\\CurrentControlSet\\Control\\IDConfigDB")
     75 #define REGSTR_PATH_CRITICALDEVICEDATABASE TEXT("System\\CurrentControlSet\\Control\\CriticalDeviceDatabase")
     76 #define REGSTR_PATH_CLASS TEXT("System\\CurrentControlSet\\Services\\Class")
     77 #define REGSTR_PATH_DISPLAYSETTINGS TEXT("Display\\Settings")
     78 #define REGSTR_PATH_FONTS TEXT("Display\\Fonts")
     79 #define REGSTR_PATH_ENUM TEXT("Enum")
     80 #define REGSTR_PATH_ROOT TEXT("Enum\\Root")
     81 
     82 #define REGSTR_PATH_CURRENTCONTROLSET TEXT("System\\CurrentControlSet")
     83 #define REGSTR_PATH_SYSTEMENUM TEXT("System\\CurrentControlSet\\Enum")
     84 #define REGSTR_PATH_HWPROFILES TEXT("System\\CurrentControlSet\\Hardware Profiles")
     85 #define REGSTR_PATH_HWPROFILESCURRENT TEXT("System\\CurrentControlSet\\Hardware Profiles\\Current")
     86 #define REGSTR_PATH_CLASS_NT TEXT("System\\CurrentControlSet\\Control\\Class")
     87 #define REGSTR_PATH_PER_HW_ID_STORAGE TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\PerHwIdStorage")
     88 
     89 #define REGSTR_PATH_DEVICE_CLASSES TEXT("System\\CurrentControlSet\\Control\\DeviceClasses")
     90 
     91 #define REGSTR_PATH_CODEVICEINSTALLERS TEXT("System\\CurrentControlSet\\Control\\CoDeviceInstallers")
     92 #define REGSTR_PATH_BUSINFORMATION TEXT("System\\CurrentControlSet\\Control\\PnP\\BusInformation")
     93 
     94 #define REGSTR_PATH_SERVICES TEXT("System\\CurrentControlSet\\Services")
     95 #define REGSTR_PATH_VXD TEXT("System\\CurrentControlSet\\Services\\VxD")
     96 #define REGSTR_PATH_IOS TEXT("System\\CurrentControlSet\\Services\\VxD\\IOS")
     97 #define REGSTR_PATH_VMM TEXT("System\\CurrentControlSet\\Services\\VxD\\VMM")
     98 #define REGSTR_PATH_VPOWERD TEXT("System\\CurrentControlSet\\Services\\VxD\\VPOWERD")
     99 #define REGSTR_PATH_VNETSUP TEXT("System\\CurrentControlSet\\Services\\VxD\\VNETSUP")
    100 #define REGSTR_PATH_NWREDIR TEXT("System\\CurrentControlSet\\Services\\VxD\\NWREDIR")
    101 #define REGSTR_PATH_NCPSERVER TEXT("System\\CurrentControlSet\\Services\\NcpServer\\Parameters")
    102 #define REGSTR_PATH_VCOMM TEXT("System\\CurrentControlSet\\Services\\VxD\\VCOMM")
    103 
    104 #define REGSTR_PATH_IOARB TEXT("System\\CurrentControlSet\\Services\\Arbitrators\\IOArb")
    105 #define REGSTR_PATH_ADDRARB TEXT("System\\CurrentControlSet\\Services\\Arbitrators\\AddrArb")
    106 #define REGSTR_PATH_DMAARB TEXT("System\\CurrentControlSet\\Services\\Arbitrators\\DMAArb")
    107 #define REGSTR_PATH_IRQARB TEXT("System\\CurrentControlSet\\Services\\Arbitrators\\IRQArb")
    108 
    109 #define REGSTR_PATH_CODEPAGE TEXT("System\\CurrentControlSet\\Control\\Nls\\Codepage")
    110 #define REGSTR_PATH_FILESYSTEM TEXT("System\\CurrentControlSet\\Control\\FileSystem")
    111 #define REGSTR_PATH_FILESYSTEM_NOVOLTRACK TEXT("System\\CurrentControlSet\\Control\\FileSystem\\NoVolTrack")
    112 #define REGSTR_PATH_CDFS TEXT("System\\CurrentControlSet\\Control\\FileSystem\\CDFS")
    113 #define REGSTR_PATH_WINBOOT TEXT("System\\CurrentControlSet\\Control\\WinBoot")
    114 #define REGSTR_PATH_INSTALLEDFILES TEXT("System\\CurrentControlSet\\Control\\InstalledFiles")
    115 #define REGSTR_PATH_VMM32FILES TEXT("System\\CurrentControlSet\\Control\\VMM32Files")
    116 
    117 #define REGSTR_MAX_VALUE_LENGTH 256
    118 
    119 #define REGSTR_KEY_DEVICE_PROPERTIES TEXT("Properties")
    120 #define REGSTR_VAL_SLOTNUMBER TEXT("SlotNumber")
    121 #define REGSTR_VAL_ATTACHEDCOMPONENTS TEXT("AttachedComponents")
    122 #define REGSTR_VAL_BASEDEVICEPATH TEXT("BaseDevicePath")
    123 #define REGSTR_VAL_SYSTEMBUSNUMBER TEXT("SystemBusNumber")
    124 #define REGSTR_VAL_BUSDATATYPE TEXT("BusDataType")
    125 #define REGSTR_VAL_INTERFACETYPE TEXT("InterfaceType")
    126 #define REGSTR_VAL_SERVICE TEXT("Service")
    127 #define REGSTR_VAL_DETECTSIGNATURE TEXT("DetectSignature")
    128 #define REGSTR_VAL_CLASSGUID TEXT("ClassGUID")
    129 #define REGSTR_VAL_INSTANCEIDENTIFIER TEXT("InstanceIdentifier")
    130 #define REGSTR_VAL_DUPLICATEOF TEXT("DuplicateOf")
    131 #define REGSTR_VAL_STATUSFLAGS TEXT("StatusFlags")
    132 #define REGSTR_VAL_DISABLECOUNT TEXT("DisableCount")
    133 #define REGSTR_VAL_UNKNOWNPROBLEMS TEXT("UnknownProblem")
    134 #define REGSTR_VAL_DOCKSTATE TEXT("DockState")
    135 #define REGSTR_VAL_PREFERENCEORDER TEXT("PreferenceOrder")
    136 #define REGSTR_VAL_USERWAITINTERVAL TEXT("UserWaitInterval")
    137 #define REGSTR_VAL_DEVICE_INSTANCE TEXT("DeviceInstance")
    138 #define REGSTR_VAL_SYMBOLIC_LINK TEXT("SymbolicLink")
    139 #define REGSTR_VAL_DEFAULT TEXT("Default")
    140 #define REGSTR_VAL_LOWERFILTERS TEXT("LowerFilters")
    141 #define REGSTR_VAL_UPPERFILTERS TEXT("UpperFilters")
    142 #define REGSTR_VAL_LOCATION_INFORMATION TEXT("LocationInformation")
    143 #define REGSTR_VAL_UI_NUMBER TEXT("UINumber")
    144 #define REGSTR_VAL_UI_NUMBER_DESC_FORMAT TEXT("UINumberDescFormat")
    145 #define REGSTR_VAL_CAPABILITIES TEXT("Capabilities")
    146 #define REGSTR_VAL_DEVICE_TYPE TEXT("DeviceType")
    147 #define REGSTR_VAL_DEVICE_CHARACTERISTICS TEXT("DeviceCharacteristics")
    148 #define REGSTR_VAL_DEVICE_SECURITY_DESCRIPTOR TEXT("Security")
    149 #define REGSTR_VAL_DEVICE_EXCLUSIVE TEXT("Exclusive")
    150 #define REGSTR_VAL_RESOURCE_PICKER_TAGS TEXT("ResourcePickerTags")
    151 #define REGSTR_VAL_RESOURCE_PICKER_EXCEPTIONS TEXT("ResourcePickerExceptions")
    152 #define REGSTR_VAL_CUSTOM_PROPERTY_CACHE_DATE TEXT("CustomPropertyCacheDate")
    153 #define REGSTR_VAL_CUSTOM_PROPERTY_HW_ID_KEY TEXT("CustomPropertyHwIdKey")
    154 #define REGSTR_VAL_LAST_UPDATE_TIME TEXT("LastUpdateTime")
    155 
    156 #define REGSTR_VALUE_DEVICE_OBJECT_NAME TEXT("DeviceObjectName")
    157 #define REGSTR_VALUE_DEVICE_SYMBOLIC_NAME TEXT("DeviceSymbolicName")
    158 #define REGSTR_VAL_EJECT_PRIORITY TEXT("EjectPriority")
    159 
    160 #define REGSTR_KEY_CONTROL TEXT("Control")
    161 #define REGSTR_VAL_ACTIVESERVICE TEXT("ActiveService")
    162 #define REGSTR_VAL_LINKED TEXT("Linked")
    163 #define REGSTR_VAL_PHYSICALDEVICEOBJECT TEXT("PhysicalDeviceObject")
    164 #define REGSTR_VAL_REMOVAL_POLICY TEXT("RemovalPolicy")
    165 
    166 #define REGSTR_VAL_CURRENT_VERSION TEXT("CurrentVersion")
    167 #define REGSTR_VAL_CURRENT_BUILD TEXT("CurrentBuildNumber")
    168 #define REGSTR_VAL_CURRENT_CSDVERSION TEXT("CSDVersion")
    169 #define REGSTR_VAL_CURRENT_TYPE TEXT("CurrentType")
    170 
    171 #define REGSTR_VAL_BITSPERPIXEL TEXT("BitsPerPixel")
    172 #define REGSTR_VAL_RESOLUTION TEXT("Resolution")
    173 #define REGSTR_VAL_DPILOGICALX TEXT("DPILogicalX")
    174 #define REGSTR_VAL_DPILOGICALY TEXT("DPILogicalY")
    175 #define REGSTR_VAL_DPIPHYSICALX TEXT("DPIPhysicalX")
    176 #define REGSTR_VAL_DPIPHYSICALY TEXT("DPIPhysicalY")
    177 #define REGSTR_VAL_REFRESHRATE TEXT("RefreshRate")
    178 #define REGSTR_VAL_DISPLAYFLAGS TEXT("DisplayFlags")
    179 
    180 #define REGSTR_PATH_CONTROLPANEL TEXT("Control Panel")
    181 
    182 #define REGSTR_PATH_CONTROLSFOLDER TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Controls Folder")
    183 
    184 #define REGSTR_VAL_DOSCP TEXT("OEMCP")
    185 #define REGSTR_VAL_WINCP TEXT("ACP")
    186 
    187 #define REGSTR_PATH_DYNA_ENUM TEXT("Config Manager\\Enum")
    188 
    189 #define REGSTR_VAL_HARDWARE_KEY TEXT("HardWareKey")
    190 #define REGSTR_VAL_ALLOCATION TEXT("Allocation")
    191 #define REGSTR_VAL_PROBLEM TEXT("Problem")
    192 #define REGSTR_VAL_STATUS TEXT("Status")
    193 
    194 #define REGSTR_VAL_DONTUSEMEM TEXT("DontAllocLastMem")
    195 
    196 #define REGSTR_VAL_SYSTEMROOT TEXT("SystemRoot")
    197 #define REGSTR_VAL_BOOTCOUNT TEXT("BootCount")
    198 #define REGSTR_VAL_REALNETSTART TEXT("RealNetStart")
    199 #define REGSTR_VAL_MEDIA TEXT("MediaPath")
    200 #define REGSTR_VAL_CONFIG TEXT("ConfigPath")
    201 #define REGSTR_VAL_DEVICEPATH TEXT("DevicePath")
    202 #define REGSTR_VAL_SRCPATH TEXT("SourcePath")
    203 #define REGSTR_VAL_SVCPAKSRCPATH TEXT("ServicePackSourcePath")
    204 #define REGSTR_VAL_DRIVERCACHEPATH TEXT("DriverCachePath")
    205 
    206 #define REGSTR_VAL_OLDWINDIR TEXT("OldWinDir")
    207 #define REGSTR_VAL_SETUPFLAGS TEXT("SetupFlags")
    208 #define REGSTR_VAL_REGOWNER TEXT("RegisteredOwner")
    209 #define REGSTR_VAL_REGORGANIZATION TEXT("RegisteredOrganization")
    210 #define REGSTR_VAL_LICENSINGINFO TEXT("LicensingInfo")
    211 #define REGSTR_VAL_OLDMSDOSVER TEXT("OldMSDOSVer")
    212 #define REGSTR_VAL_FIRSTINSTALLDATETIME TEXT("FirstInstallDateTime")
    213 
    214 #define REGSTR_VAL_INSTALLTYPE TEXT("InstallType")
    215 
    216 #define IT_COMPACT 0x0000
    217 #define IT_TYPICAL 0x0001
    218 #define IT_PORTABLE 0x0002
    219 #define IT_CUSTOM 0x0003
    220 
    221 #define REGSTR_VAL_WRAPPER TEXT("Wrapper")
    222 
    223 #define REGSTR_VAL_LASTALIVEINTERVAL TEXT("TimeStampInterval")
    224 #define REGSTR_VAL_LASTALIVESTAMP TEXT("LastAliveStamp")
    225 #define REGSTR_VAL_LASTALIVEUPTIME TEXT("LastAliveUptime")
    226 #define REGSTR_VAL_SHUTDOWNREASON TEXT("ShutdownReason")
    227 #define REGSTR_VAL_SHUTDOWNREASON_CODE TEXT("ShutdownReasonCode")
    228 #define REGSTR_VAL_SHUTDOWNREASON_COMMENT TEXT("ShutdownReasonComment")
    229 #define REGSTR_VAL_SHUTDOWNREASON_PROCESS TEXT("ShutdownReasonProcess")
    230 #define REGSTR_VAL_SHUTDOWNREASON_USERNAME TEXT("ShutdownReasonUserName")
    231 #define REGSTR_VAL_SHOWREASONUI TEXT("ShutdownReasonUI")
    232 #define REGSTR_VAL_SHUTDOWN_IGNORE_PREDEFINED TEXT("ShutdownIgnorePredefinedReasons")
    233 #define REGSTR_VAL_SHUTDOWN_STATE_SNAPSHOT TEXT("ShutdownStateSnapshot")
    234 
    235 #define REGSTR_KEY_SETUP TEXT("\\Setup")
    236 #define REGSTR_VAL_BOOTDIR TEXT("BootDir")
    237 #define REGSTR_VAL_WINBOOTDIR TEXT("WinbootDir")
    238 #define REGSTR_VAL_WINDIR TEXT("WinDir")
    239 
    240 #define REGSTR_VAL_APPINSTPATH TEXT("AppInstallPath")
    241 
    242 #define REGSTR_PATH_EBD REGSTR_PATH_SETUP REGSTR_KEY_SETUP TEXT("\\EBD")
    243 
    244 #define REGSTR_KEY_EBDFILESLOCAL TEXT("EBDFilesLocale")
    245 #define REGSTR_KEY_EBDFILESKEYBOARD TEXT("EBDFilesKeyboard")
    246 #define REGSTR_KEY_EBDAUTOEXECBATLOCAL TEXT("EBDAutoexecBatLocale")
    247 #define REGSTR_KEY_EBDAUTOEXECBATKEYBOARD TEXT("EBDAutoexecBatKeyboard")
    248 #define REGSTR_KEY_EBDCONFIGSYSLOCAL TEXT("EBDConfigSysLocale")
    249 #define REGSTR_KEY_EBDCONFIGSYSKEYBOARD TEXT("EBDConfigSysKeyboard")
    250 
    251 #define REGSTR_VAL_POLICY TEXT("Policy")
    252 
    253 #define REGSTR_VAL_BEHAVIOR_ON_FAILED_VERIFY TEXT("BehaviorOnFailedVerify")
    254 
    255 #define DRIVERSIGN_NONE 0x00000000
    256 #define DRIVERSIGN_WARNING 0x00000001
    257 #define DRIVERSIGN_BLOCKING 0x00000002
    258 
    259 #define REGSTR_VAL_MSDOSMODE TEXT("MSDOSMode")
    260 #define REGSTR_VAL_MSDOSMODEDISCARD TEXT("Discard")
    261 
    262 #define REGSTR_VAL_DOSOPTGLOBALFLAGS TEXT("GlobalFlags")
    263 
    264 #define DOSOPTGF_DEFCLEAN __MSABI_LONG(0x00000001)
    265 
    266 #define REGSTR_VAL_DOSOPTFLAGS TEXT("Flags")
    267 #define REGSTR_VAL_OPTORDER TEXT("Order")
    268 #define REGSTR_VAL_CONFIGSYS TEXT("Config.Sys")
    269 #define REGSTR_VAL_AUTOEXEC TEXT("Autoexec.Bat")
    270 #define REGSTR_VAL_STDDOSOPTION TEXT("StdOption")
    271 #define REGSTR_VAL_DOSOPTTIP TEXT("TipText")
    272 
    273 #define DOSOPTF_DEFAULT __MSABI_LONG(0x00000001)
    274 #define DOSOPTF_SUPPORTED __MSABI_LONG(0x00000002)
    275 #define DOSOPTF_ALWAYSUSE __MSABI_LONG(0x00000004)
    276 #define DOSOPTF_USESPMODE __MSABI_LONG(0x00000008)
    277 #define DOSOPTF_PROVIDESUMB __MSABI_LONG(0x00000010)
    278 #define DOSOPTF_NEEDSETUP __MSABI_LONG(0x00000020)
    279 #define DOSOPTF_INDOSSTART __MSABI_LONG(0x00000040)
    280 #define DOSOPTF_MULTIPLE __MSABI_LONG(0x00000080)
    281 
    282 #define SUF_FIRSTTIME __MSABI_LONG(0x00000001)
    283 #define SUF_EXPRESS __MSABI_LONG(0x00000002)
    284 #define SUF_BATCHINF __MSABI_LONG(0x00000004)
    285 #define SUF_CLEAN __MSABI_LONG(0x00000008)
    286 #define SUF_INSETUP __MSABI_LONG(0x00000010)
    287 #define SUF_NETSETUP __MSABI_LONG(0x00000020)
    288 #define SUF_NETHDBOOT __MSABI_LONG(0x00000040)
    289 #define SUF_NETRPLBOOT __MSABI_LONG(0x00000080)
    290 #define SUF_SBSCOPYOK __MSABI_LONG(0x00000100)
    291 
    292 #define REGSTR_VAL_DOSPAGER TEXT("DOSPager")
    293 #define REGSTR_VAL_VXDGROUPS TEXT("VXDGroups")
    294 
    295 #define REGSTR_VAL_VPOWERDFLAGS TEXT("Flags")
    296 #define VPDF_DISABLEPWRMGMT 0x00000001
    297 #define VPDF_FORCEAPM10MODE 0x00000002
    298 #define VPDF_SKIPINTELSLCHECK 0x00000004
    299 #define VPDF_DISABLEPWRSTATUSPOLL 0x00000008
    300 #define VPDF_DISABLERINGRESUME 0x00000010
    301 #define VPDF_SHOWMULTIBATT 0x00000020
    302 
    303 #define BIF_SHOWSIMILARDRIVERS 0x00000001
    304 #define BIF_RAWDEVICENEEDSDRIVER 0x00000002
    305 
    306 #define REGSTR_VAL_WORKGROUP TEXT("Workgroup")
    307 #define REGSTR_VAL_DIRECTHOST TEXT("DirectHost")
    308 #define REGSTR_VAL_FILESHARING TEXT("FileSharing")
    309 #define REGSTR_VAL_PRINTSHARING TEXT("PrintSharing")
    310 
    311 #define REGSTR_VAL_FIRSTNETDRIVE TEXT("FirstNetworkDrive")
    312 #define REGSTR_VAL_MAXCONNECTIONS TEXT("MaxConnections")
    313 #define REGSTR_VAL_APISUPPORT TEXT("APISupport")
    314 #define REGSTR_VAL_MAXRETRY TEXT("MaxRetry")
    315 #define REGSTR_VAL_MINRETRY TEXT("MinRetry")
    316 #define REGSTR_VAL_SUPPORTLFN TEXT("SupportLFN")
    317 #define REGSTR_VAL_SUPPORTBURST TEXT("SupportBurst")
    318 #define REGSTR_VAL_SUPPORTTUNNELLING TEXT("SupportTunnelling")
    319 #define REGSTR_VAL_FULLTRACE TEXT("FullTrace")
    320 #define REGSTR_VAL_READCACHING TEXT("ReadCaching")
    321 #define REGSTR_VAL_SHOWDOTS TEXT("ShowDots")
    322 #define REGSTR_VAL_GAPTIME TEXT("GapTime")
    323 #define REGSTR_VAL_SEARCHMODE TEXT("SearchMode")
    324 #define REGSTR_VAL_SHELLVERSION TEXT("ShellVersion")
    325 #define REGSTR_VAL_MAXLIP TEXT("MaxLIP")
    326 #define REGSTR_VAL_PRESERVECASE TEXT("PreserveCase")
    327 #define REGSTR_VAL_OPTIMIZESFN TEXT("OptimizeSFN")
    328 
    329 #define REGSTR_VAL_NCP_BROWSEMASTER TEXT("BrowseMaster")
    330 #define REGSTR_VAL_NCP_USEPEERBROWSING TEXT("Use_PeerBrowsing")
    331 #define REGSTR_VAL_NCP_USESAP TEXT("Use_Sap")
    332 
    333 #define REGSTR_VAL_PCCARD_POWER TEXT("EnablePowerManagement")
    334 
    335 #define REGSTR_VAL_WIN31FILESYSTEM TEXT("Win31FileSystem")
    336 #define REGSTR_VAL_PRESERVELONGNAMES TEXT("PreserveLongNames")
    337 #define REGSTR_VAL_DRIVEWRITEBEHIND TEXT("DriveWriteBehind")
    338 #define REGSTR_VAL_ASYNCFILECOMMIT TEXT("AsyncFileCommit")
    339 #define REGSTR_VAL_PATHCACHECOUNT TEXT("PathCache")
    340 #define REGSTR_VAL_NAMECACHECOUNT TEXT("NameCache")
    341 #define REGSTR_VAL_CONTIGFILEALLOC TEXT("ContigFileAllocSize")
    342 #define REGSTR_VAL_FREESPACERATIO TEXT("FreeSpaceRatio")
    343 #define REGSTR_VAL_VOLIDLETIMEOUT TEXT("VolumeIdleTimeout")
    344 #define REGSTR_VAL_BUFFIDLETIMEOUT TEXT("BufferIdleTimeout")
    345 #define REGSTR_VAL_BUFFAGETIMEOUT TEXT("BufferAgeTimeout")
    346 #define REGSTR_VAL_NAMENUMERICTAIL TEXT("NameNumericTail")
    347 #define REGSTR_VAL_READAHEADTHRESHOLD TEXT("ReadAheadThreshold")
    348 #define REGSTR_VAL_DOUBLEBUFFER TEXT("DoubleBuffer")
    349 #define REGSTR_VAL_SOFTCOMPATMODE TEXT("SoftCompatMode")
    350 #define REGSTR_VAL_DRIVESPINDOWN TEXT("DriveSpinDown")
    351 #define REGSTR_VAL_FORCEPMIO TEXT("ForcePMIO")
    352 #define REGSTR_VAL_FORCERMIO TEXT("ForceRMIO")
    353 #define REGSTR_VAL_LASTBOOTPMDRVS TEXT("LastBootPMDrvs")
    354 #define REGSTR_VAL_ACSPINDOWNPREVIOUS TEXT("ACSpinDownPrevious")
    355 #define REGSTR_VAL_BATSPINDOWNPREVIOUS TEXT("BatSpinDownPrevious")
    356 #define REGSTR_VAL_VIRTUALHDIRQ TEXT("VirtualHDIRQ")
    357 #define REGSTR_VAL_SRVNAMECACHECOUNT TEXT("ServerNameCacheMax")
    358 #define REGSTR_VAL_SRVNAMECACHE TEXT("ServerNameCache")
    359 #define REGSTR_VAL_SRVNAMECACHENETPROV TEXT("ServerNameCacheNumNets")
    360 #define REGSTR_VAL_AUTOMOUNT TEXT("AutoMountDrives")
    361 #define REGSTR_VAL_COMPRESSIONMETHOD TEXT("CompressionAlgorithm")
    362 #define REGSTR_VAL_COMPRESSIONTHRESHOLD TEXT("CompressionThreshold")
    363 #define REGSTR_VAL_ACDRIVESPINDOWN TEXT("ACDriveSpinDown")
    364 #define REGSTR_VAL_BATDRIVESPINDOWN TEXT("BatDriveSpinDown")
    365 
    366 #define REGSTR_VAL_CDCACHESIZE TEXT("CacheSize")
    367 #define REGSTR_VAL_CDPREFETCH TEXT("Prefetch")
    368 #define REGSTR_VAL_CDPREFETCHTAIL TEXT("PrefetchTail")
    369 #define REGSTR_VAL_CDRAWCACHE TEXT("RawCache")
    370 #define REGSTR_VAL_CDEXTERRORS TEXT("ExtendedErrors")
    371 #define REGSTR_VAL_CDSVDSENSE TEXT("SVDSense")
    372 #define REGSTR_VAL_CDSHOWVERSIONS TEXT("ShowVersions")
    373 #define REGSTR_VAL_CDCOMPATNAMES TEXT("MSCDEXCompatNames")
    374 #define REGSTR_VAL_CDNOREADAHEAD TEXT("NoReadAhead")
    375 
    376 #define REGSTR_VAL_SCSI TEXT("SCSI\\")
    377 #define REGSTR_VAL_ESDI TEXT("ESDI\\")
    378 #define REGSTR_VAL_FLOP TEXT("FLOP\\")
    379 
    380 #define REGSTR_VAL_DISK TEXT("GenDisk")
    381 #define REGSTR_VAL_CDROM TEXT("GenCD")
    382 #define REGSTR_VAL_TAPE TEXT("TAPE")
    383 #define REGSTR_VAL_SCANNER TEXT("SCANNER")
    384 #define REGSTR_VAL_FLOPPY TEXT("FLOPPY")
    385 
    386 #define REGSTR_VAL_SCSITID TEXT("SCSITargetID")
    387 #define REGSTR_VAL_SCSILUN TEXT("SCSILUN")
    388 #define REGSTR_VAL_REVLEVEL TEXT("RevisionLevel")
    389 #define REGSTR_VAL_PRODUCTID TEXT("ProductId")
    390 #define REGSTR_VAL_PRODUCTTYPE TEXT("ProductType")
    391 #define REGSTR_VAL_DEVTYPE TEXT("DeviceType")
    392 #define REGSTR_VAL_REMOVABLE TEXT("Removable")
    393 #define REGSTR_VAL_CURDRVLET TEXT("CurrentDriveLetterAssignment")
    394 #define REGSTR_VAL_USRDRVLET TEXT("UserDriveLetterAssignment")
    395 #define REGSTR_VAL_SYNCDATAXFER TEXT("SyncDataXfer")
    396 #define REGSTR_VAL_AUTOINSNOTE TEXT("AutoInsertNotification")
    397 #define REGSTR_VAL_DISCONNECT TEXT("Disconnect")
    398 #define REGSTR_VAL_INT13 TEXT("Int13")
    399 #define REGSTR_VAL_PMODE_INT13 TEXT("PModeInt13")
    400 #define REGSTR_VAL_USERSETTINGS TEXT("AdapterSettings")
    401 #define REGSTR_VAL_NOIDE TEXT("NoIDE")
    402 
    403 #define REGSTR_VAL_DISKCLASSNAME TEXT("DiskDrive")
    404 #define REGSTR_VAL_CDROMCLASSNAME TEXT("CDROM")
    405 
    406 #define REGSTR_VAL_FORCELOAD TEXT("ForceLoadPD")
    407 
    408 #define REGSTR_VAL_FORCEFIFO TEXT("ForceFIFO")
    409 #define REGSTR_VAL_FORCECL TEXT("ForceChangeLine")
    410 
    411 #define REGSTR_VAL_NOUSECLASS TEXT("NoUseClass")
    412 #define REGSTR_VAL_NOINSTALLCLASS TEXT("NoInstallClass")
    413 #define REGSTR_VAL_NODISPLAYCLASS TEXT("NoDisplayClass")
    414 #define REGSTR_VAL_SILENTINSTALL TEXT("SilentInstall")
    415 
    416 #define REGSTR_KEY_PCMCIA_CLASS TEXT("PCMCIA")
    417 #define REGSTR_KEY_SCSI_CLASS TEXT("SCSIAdapter")
    418 #define REGSTR_KEY_PORTS_CLASS TEXT("ports")
    419 #define REGSTR_KEY_MEDIA_CLASS TEXT("MEDIA")
    420 #define REGSTR_KEY_DISPLAY_CLASS TEXT("Display")
    421 #define REGSTR_KEY_KEYBOARD_CLASS TEXT("Keyboard")
    422 #define REGSTR_KEY_MOUSE_CLASS TEXT("Mouse")
    423 #define REGSTR_KEY_MONITOR_CLASS TEXT("Monitor")
    424 #define REGSTR_KEY_MODEM_CLASS TEXT("Modem")
    425 
    426 #define REGSTR_VAL_PCMCIA_OPT TEXT("Options")
    427 #define PCMCIA_OPT_HAVE_SOCKET __MSABI_LONG(0x00000001)
    428 
    429 #define PCMCIA_OPT_AUTOMEM __MSABI_LONG(0x00000004)
    430 #define PCMCIA_OPT_NO_SOUND __MSABI_LONG(0x00000008)
    431 #define PCMCIA_OPT_NO_AUDIO __MSABI_LONG(0x00000010)
    432 #define PCMCIA_OPT_NO_APMREMOVE __MSABI_LONG(0x00000020)
    433 
    434 #define REGSTR_VAL_PCMCIA_MEM TEXT("Memory")
    435 #define PCMCIA_DEF_MEMBEGIN 0x000C0000
    436 #define PCMCIA_DEF_MEMEND 0x00FFFFFF
    437 #define PCMCIA_DEF_MEMLEN 0x00001000
    438 
    439 #define REGSTR_VAL_PCMCIA_ALLOC TEXT("AllocMemWin")
    440 #define REGSTR_VAL_PCMCIA_ATAD TEXT("ATADelay")
    441 
    442 #define REGSTR_VAL_PCMCIA_SIZ TEXT("MinRegionSize")
    443 #define PCMCIA_DEF_MIN_REGION 0x00010000
    444 
    445 #define REGSTR_VAL_P1284MDL TEXT("Model")
    446 #define REGSTR_VAL_P1284MFG TEXT("Manufacturer")
    447 
    448 #define REGSTR_VAL_ISAPNP TEXT("ISAPNP")
    449 #define REGSTR_VAL_ISAPNP_RDP_OVERRIDE TEXT("RDPOverRide")
    450 
    451 #define REGSTR_VAL_PCI TEXT("PCI")
    452 #define REGSTR_PCI_OPTIONS TEXT("Options")
    453 #define REGSTR_PCI_DUAL_IDE TEXT("PCIDualIDE")
    454 #define PCI_OPTIONS_USE_BIOS __MSABI_LONG(0x00000001)
    455 #define PCI_OPTIONS_USE_IRQ_STEERING __MSABI_LONG(0x00000002)
    456 
    457 #define AGP_FLAG_NO_1X_RATE __MSABI_LONG(0x00000001)
    458 #define AGP_FLAG_NO_2X_RATE __MSABI_LONG(0x00000002)
    459 #define AGP_FLAG_NO_4X_RATE __MSABI_LONG(0x00000004)
    460 #define AGP_FLAG_NO_8X_RATE __MSABI_LONG(0x00000008)
    461 #define AGP_FLAG_REVERSE_INITIALIZATION __MSABI_LONG(0x00000080)
    462 
    463 #define AGP_FLAG_NO_SBA_ENABLE __MSABI_LONG(0x00000100)
    464 #define AGP_FLAG_NO_FW_ENABLE __MSABI_LONG(0x00000200)
    465 
    466 #define AGP_FLAG_SPECIAL_TARGET __MSABI_LONG(0x000FFFFF)
    467 #define AGP_FLAG_SPECIAL_RESERVE __MSABI_LONG(0x000F8000)
    468 
    469 #define REGSTR_KEY_CRASHES TEXT("Crashes")
    470 #define REGSTR_KEY_DANGERS TEXT("Dangers")
    471 #define REGSTR_KEY_DETMODVARS TEXT("DetModVars")
    472 #define REGSTR_KEY_NDISINFO TEXT("NDISInfo")
    473 #define REGSTR_VAL_PROTINIPATH TEXT("ProtIniPath")
    474 #define REGSTR_VAL_RESOURCES TEXT("Resources")
    475 #define REGSTR_VAL_CRASHFUNCS TEXT("CrashFuncs")
    476 #define REGSTR_VAL_CLASS TEXT("Class")
    477 #define REGSTR_VAL_DEVDESC TEXT("DeviceDesc")
    478 #define REGSTR_VAL_BOOTCONFIG TEXT("BootConfig")
    479 #define REGSTR_VAL_DETFUNC TEXT("DetFunc")
    480 #define REGSTR_VAL_DETFLAGS TEXT("DetFlags")
    481 #define REGSTR_VAL_COMPATIBLEIDS TEXT("CompatibleIDs")
    482 #define REGSTR_VAL_DETCONFIG TEXT("DetConfig")
    483 #define REGSTR_VAL_VERIFYKEY TEXT("VerifyKey")
    484 #define REGSTR_VAL_COMINFO TEXT("ComInfo")
    485 #define REGSTR_VAL_INFNAME TEXT("InfName")
    486 #define REGSTR_VAL_CARDSPECIFIC TEXT("CardSpecific")
    487 #define REGSTR_VAL_NETOSTYPE TEXT("NetOSType")
    488 #define REGSTR_DATA_NETOS_NDIS TEXT("NDIS")
    489 #define REGSTR_DATA_NETOS_ODI TEXT("ODI")
    490 #define REGSTR_DATA_NETOS_IPX TEXT("IPX")
    491 #define REGSTR_VAL_MFG TEXT("Mfg")
    492 #define REGSTR_VAL_SCAN_ONLY_FIRST TEXT("ScanOnlyFirstDrive")
    493 #define REGSTR_VAL_SHARE_IRQ TEXT("ForceIRQSharing")
    494 #define REGSTR_VAL_NONSTANDARD_ATAPI TEXT("NonStandardATAPI")
    495 #define REGSTR_VAL_IDE_FORCE_SERIALIZE TEXT("ForceSerialization")
    496 #define REGSTR_VAL_MAX_HCID_LEN 1024
    497 #define REGSTR_VAL_HWREV TEXT("HWRevision")
    498 #define REGSTR_VAL_ENABLEINTS TEXT("EnableInts")
    499 
    500 #define REGDF_NOTDETIO 0x00000001
    501 #define REGDF_NOTDETMEM 0x00000002
    502 #define REGDF_NOTDETIRQ 0x00000004
    503 #define REGDF_NOTDETDMA 0x00000008
    504 #define REGDF_NOTDETALL (REGDF_NOTDETIO | REGDF_NOTDETMEM | REGDF_NOTDETIRQ | REGDF_NOTDETDMA)
    505 #define REGDF_NEEDFULLCONFIG 0x00000010
    506 #define REGDF_GENFORCEDCONFIG 0x00000020
    507 #define REGDF_NODETCONFIG 0x00008000
    508 #define REGDF_CONFLICTIO 0x00010000
    509 #define REGDF_CONFLICTMEM 0x00020000
    510 #define REGDF_CONFLICTIRQ 0x00040000
    511 #define REGDF_CONFLICTDMA 0x00080000
    512 #define REGDF_CONFLICTALL (REGDF_CONFLICTIO | REGDF_CONFLICTMEM | REGDF_CONFLICTIRQ | REGDF_CONFLICTDMA)
    513 #define REGDF_MAPIRQ2TO9 0x00100000
    514 #define REGDF_NOTVERIFIED 0x80000000
    515 
    516 #define REGSTR_VAL_APMBIOSVER TEXT("APMBiosVer")
    517 #define REGSTR_VAL_APMFLAGS TEXT("APMFlags")
    518 #define REGSTR_VAL_SLSUPPORT TEXT("SLSupport")
    519 #define REGSTR_VAL_MACHINETYPE TEXT("MachineType")
    520 #define REGSTR_VAL_SETUPMACHINETYPE TEXT("SetupMachineType")
    521 #define REGSTR_MACHTYPE_UNKNOWN TEXT("Unknown")
    522 #define REGSTR_MACHTYPE_IBMPC TEXT("IBM PC")
    523 #define REGSTR_MACHTYPE_IBMPCJR TEXT("IBM PCjr")
    524 #define REGSTR_MACHTYPE_IBMPCCONV TEXT("IBM PC Convertible")
    525 #define REGSTR_MACHTYPE_IBMPCXT TEXT("IBM PC/XT")
    526 #define REGSTR_MACHTYPE_IBMPCXT_286 TEXT("IBM PC/XT 286")
    527 #define REGSTR_MACHTYPE_IBMPCAT TEXT("IBM PC/AT")
    528 #define REGSTR_MACHTYPE_IBMPS2_25 TEXT("IBM PS/2-25")
    529 #define REGSTR_MACHTYPE_IBMPS2_30_286 TEXT("IBM PS/2-30 286")
    530 #define REGSTR_MACHTYPE_IBMPS2_30 TEXT("IBM PS/2-30")
    531 #define REGSTR_MACHTYPE_IBMPS2_50 TEXT("IBM PS/2-50")
    532 #define REGSTR_MACHTYPE_IBMPS2_50Z TEXT("IBM PS/2-50Z")
    533 #define REGSTR_MACHTYPE_IBMPS2_55SX TEXT("IBM PS/2-55SX")
    534 #define REGSTR_MACHTYPE_IBMPS2_60 TEXT("IBM PS/2-60")
    535 #define REGSTR_MACHTYPE_IBMPS2_65SX TEXT("IBM PS/2-65SX")
    536 #define REGSTR_MACHTYPE_IBMPS2_70 TEXT("IBM PS/2-70")
    537 #define REGSTR_MACHTYPE_IBMPS2_P70 TEXT("IBM PS/2-P70")
    538 #define REGSTR_MACHTYPE_IBMPS2_70_80 TEXT("IBM PS/2-70/80")
    539 #define REGSTR_MACHTYPE_IBMPS2_80 TEXT("IBM PS/2-80")
    540 #define REGSTR_MACHTYPE_IBMPS2_90 TEXT("IBM PS/2-90")
    541 #define REGSTR_MACHTYPE_IBMPS1 TEXT("IBM PS/1")
    542 #define REGSTR_MACHTYPE_PHOENIX_PCAT TEXT("Phoenix PC/AT Compatible")
    543 #define REGSTR_MACHTYPE_HP_VECTRA TEXT("HP Vectra")
    544 #define REGSTR_MACHTYPE_ATT_PC TEXT("AT&T PC")
    545 #define REGSTR_MACHTYPE_ZENITH_PC TEXT("Zenith PC")
    546 
    547 #define REGSTR_VAL_APMMENUSUSPEND TEXT("APMMenuSuspend")
    548 #define APMMENUSUSPEND_DISABLED 0
    549 #define APMMENUSUSPEND_ENABLED 1
    550 #define APMMENUSUSPEND_UNDOCKED 2
    551 #define APMMENUSUSPEND_NOCHANGE 0x80
    552 
    553 #define REGSTR_VAL_APMACTIMEOUT TEXT("APMACTimeout")
    554 #define REGSTR_VAL_APMBATTIMEOUT TEXT("APMBatTimeout")
    555 #define APMTIMEOUT_DISABLED 0
    556 
    557 #define REGSTR_VAL_APMSHUTDOWNPOWER TEXT("APMShutDownPower")
    558 
    559 #define REGSTR_VAL_BUSTYPE TEXT("BusType")
    560 #define REGSTR_VAL_CPU TEXT("CPU")
    561 #define REGSTR_VAL_NDP TEXT("NDP")
    562 #define REGSTR_VAL_PNPBIOSVER TEXT("PnPBIOSVer")
    563 #define REGSTR_VAL_PNPSTRUCOFFSET TEXT("PnPStrucOffset")
    564 #define REGSTR_VAL_PCIBIOSVER TEXT("PCIBIOSVer")
    565 #define REGSTR_VAL_HWMECHANISM TEXT("HWMechanism")
    566 #define REGSTR_VAL_LASTPCIBUSNUM TEXT("LastPCIBusNum")
    567 #define REGSTR_VAL_CONVMEM TEXT("ConvMem")
    568 #define REGSTR_VAL_EXTMEM TEXT("ExtMem")
    569 #define REGSTR_VAL_COMPUTERNAME TEXT("ComputerName")
    570 #define REGSTR_VAL_BIOSNAME TEXT("BIOSName")
    571 #define REGSTR_VAL_BIOSVERSION TEXT("BIOSVersion")
    572 #define REGSTR_VAL_BIOSDATE TEXT("BIOSDate")
    573 #define REGSTR_VAL_MODEL TEXT("Model")
    574 #define REGSTR_VAL_SUBMODEL TEXT("Submodel")
    575 #define REGSTR_VAL_REVISION TEXT("Revision")
    576 
    577 #define REGSTR_VAL_FIFODEPTH TEXT("FIFODepth")
    578 #define REGSTR_VAL_RDINTTHRESHOLD TEXT("RDIntThreshold")
    579 #define REGSTR_VAL_WRINTTHRESHOLD TEXT("WRIntThreshold")
    580 
    581 #define REGSTR_VAL_PRIORITY TEXT("Priority")
    582 #define REGSTR_VAL_DRIVER TEXT("Driver")
    583 #define REGSTR_VAL_FUNCDESC TEXT("FunctionDesc")
    584 #define REGSTR_VAL_FORCEDCONFIG TEXT("ForcedConfig")
    585 #define REGSTR_VAL_CONFIGFLAGS TEXT("ConfigFlags")
    586 #define REGSTR_VAL_CSCONFIGFLAGS TEXT("CSConfigFlags")
    587 
    588 #define CONFIGFLAG_DISABLED 0x00000001
    589 #define CONFIGFLAG_REMOVED 0x00000002
    590 #define CONFIGFLAG_MANUAL_INSTALL 0x00000004
    591 #define CONFIGFLAG_IGNORE_BOOT_LC 0x00000008
    592 #define CONFIGFLAG_NET_BOOT 0x00000010
    593 #define CONFIGFLAG_REINSTALL 0x00000020
    594 #define CONFIGFLAG_FAILEDINSTALL 0x00000040
    595 #define CONFIGFLAG_CANTSTOPACHILD 0x00000080
    596 #define CONFIGFLAG_OKREMOVEROM 0x00000100
    597 #define CONFIGFLAG_NOREMOVEEXIT 0x00000200
    598 #define CONFIGFLAG_FINISH_INSTALL 0x00000400
    599 #define CONFIGFLAG_NEEDS_FORCED_CONFIG 0x00000800
    600 #if defined(REMOTE_BOOT)
    601 #define CONFIGFLAG_NETBOOT_CARD 0x00001000
    602 #endif
    603 #define CONFIGFLAG_PARTIAL_LOG_CONF 0x00002000
    604 #define CONFIGFLAG_SUPPRESS_SURPRISE 0x00004000
    605 #define CONFIGFLAG_VERIFY_HARDWARE 0x00008000
    606 
    607 #define CSCONFIGFLAG_BITS 0x00000007
    608 #define CSCONFIGFLAG_DISABLED 0x00000001
    609 #define CSCONFIGFLAG_DO_NOT_CREATE 0x00000002
    610 #define CSCONFIGFLAG_DO_NOT_START 0x00000004
    611 
    612 #define DMSTATEFLAG_APPLYTOALL 0x00000001
    613 
    614 #define REGSTR_VAL_ROOT_DEVNODE TEXT("HTREE\\ROOT\\0")
    615 #define REGSTR_VAL_RESERVED_DEVNODE TEXT("HTREE\\RESERVED\\0")
    616 #define REGSTR_PATH_READDATAPORT REGSTR_KEY_ISAENUM TEXT("\\ReadDataPort\\0")
    617 
    618 #define REGSTR_PATH_MULTI_FUNCTION TEXT("MF")
    619 #define REGSTR_VAL_RESOURCE_MAP TEXT("ResourceMap")
    620 #define REGSTR_PATH_CHILD_PREFIX TEXT("Child")
    621 #define NUM_RESOURCE_MAP 256
    622 #define REGSTR_VAL_MF_FLAGS TEXT("MFFlags")
    623 #define MF_FLAGS_EVEN_IF_NO_RESOURCE 0x00000001
    624 #define MF_FLAGS_NO_CREATE_IF_NO_RESOURCE 0x00000002
    625 #define MF_FLAGS_FILL_IN_UNKNOWN_RESOURCE 0x00000004
    626 #define MF_FLAGS_CREATE_BUT_NO_SHOW_DISABLED 0x00000008
    627 
    628 #ifndef NEC_98
    629 #define REGSTR_VAL_EISA_RANGES TEXT("EISARanges")
    630 #define REGSTR_VAL_EISA_FUNCTIONS TEXT("EISAFunctions")
    631 #define REGSTR_VAL_EISA_FUNCTIONS_MASK TEXT("EISAFunctionsMask")
    632 #define REGSTR_VAL_EISA_FLAGS TEXT("EISAFlags")
    633 #define REGSTR_VAL_EISA_SIMULATE_INT15 TEXT("EISASimulateInt15")
    634 #else
    635 #define REGSTR_VAL_EISA_RANGES TEXT("NESARanges")
    636 #define REGSTR_VAL_EISA_FUNCTIONS TEXT("NESAFunctions")
    637 #define REGSTR_VAL_EISA_FUNCTIONS_MASK TEXT("NESAFunctionsMask")
    638 #define REGSTR_VAL_EISA_FLAGS TEXT("NESAFlags")
    639 #define REGSTR_VAL_EISA_SIMULATE_INT15 TEXT("NESASimulateInt15")
    640 #endif
    641 #define EISAFLAG_NO_IO_MERGE 0x00000001
    642 #define EISAFLAG_SLOT_IO_FIRST 0x00000002
    643 #define EISA_NO_MAX_FUNCTION 0xFF
    644 #define NUM_EISA_RANGES 4
    645 
    646 #define REGSTR_VAL_DRVDESC TEXT("DriverDesc")
    647 #define REGSTR_VAL_DEVLOADER TEXT("DevLoader")
    648 #define REGSTR_VAL_STATICVXD TEXT("StaticVxD")
    649 #define REGSTR_VAL_PROPERTIES TEXT("Properties")
    650 #define REGSTR_VAL_MANUFACTURER TEXT("Manufacturer")
    651 #define REGSTR_VAL_EXISTS TEXT("Exists")
    652 #define REGSTR_VAL_CMENUMFLAGS TEXT("CMEnumFlags")
    653 #define REGSTR_VAL_CMDRIVFLAGS TEXT("CMDrivFlags")
    654 #define REGSTR_VAL_ENUMERATOR TEXT("Enumerator")
    655 #define REGSTR_VAL_DEVICEDRIVER TEXT("DeviceDriver")
    656 #define REGSTR_VAL_PORTNAME TEXT("PortName")
    657 #define REGSTR_VAL_INFPATH TEXT("InfPath")
    658 #define REGSTR_VAL_INFSECTION TEXT("InfSection")
    659 #define REGSTR_VAL_INFSECTIONEXT TEXT("InfSectionExt")
    660 #define REGSTR_VAL_POLLING TEXT("Polling")
    661 #define REGSTR_VAL_DONTLOADIFCONFLICT TEXT("DontLoadIfConflict")
    662 #define REGSTR_VAL_PORTSUBCLASS TEXT("PortSubClass")
    663 #define REGSTR_VAL_NETCLEAN TEXT("NetClean")
    664 #define REGSTR_VAL_IDE_NO_SERIALIZE TEXT("IDENoSerialize")
    665 #define REGSTR_VAL_NOCMOSORFDPT TEXT("NoCMOSorFDPT")
    666 #define REGSTR_VAL_COMVERIFYBASE TEXT("COMVerifyBase")
    667 #define REGSTR_VAL_MATCHINGDEVID TEXT("MatchingDeviceId")
    668 #define REGSTR_VAL_DRIVERDATE TEXT("DriverDate")
    669 #define REGSTR_VAL_DRIVERDATEDATA TEXT("DriverDateData")
    670 #define REGSTR_VAL_DRIVERVERSION TEXT("DriverVersion")
    671 #define REGSTR_VAL_LOCATION_INFORMATION_OVERRIDE TEXT("LocationInformationOverride")
    672 
    673 #define REGSTR_KEY_OVERRIDE TEXT("Override")
    674 
    675 #define REGSTR_VAL_CONFIGMG TEXT("CONFIGMG")
    676 #define REGSTR_VAL_SYSDM TEXT("SysDM")
    677 #define REGSTR_VAL_SYSDMFUNC TEXT("SysDMFunc")
    678 #define REGSTR_VAL_PRIVATE TEXT("Private")
    679 #define REGSTR_VAL_PRIVATEFUNC TEXT("PrivateFunc")
    680 #define REGSTR_VAL_DETECT TEXT("Detect")
    681 #define REGSTR_VAL_DETECTFUNC TEXT("DetectFunc")
    682 #define REGSTR_VAL_ASKFORCONFIG TEXT("AskForConfig")
    683 #define REGSTR_VAL_ASKFORCONFIGFUNC TEXT("AskForConfigFunc")
    684 #define REGSTR_VAL_WAITFORUNDOCK TEXT("WaitForUndock")
    685 #define REGSTR_VAL_WAITFORUNDOCKFUNC TEXT("WaitForUndockFunc")
    686 #define REGSTR_VAL_REMOVEROMOKAY TEXT("RemoveRomOkay")
    687 #define REGSTR_VAL_REMOVEROMOKAYFUNC TEXT("RemoveRomOkayFunc")
    688 
    689 #define REGSTR_VAL_CURCONFIG TEXT("CurrentConfig")
    690 #define REGSTR_VAL_FRIENDLYNAME TEXT("FriendlyName")
    691 #define REGSTR_VAL_CURRENTCONFIG TEXT("CurrentConfig")
    692 #define REGSTR_VAL_MAP TEXT("Map")
    693 #define REGSTR_VAL_ID TEXT("CurrentID")
    694 #define REGSTR_VAL_DOCKED TEXT("CurrentDockedState")
    695 #define REGSTR_VAL_CHECKSUM TEXT("CurrentChecksum")
    696 #define REGSTR_VAL_HWDETECT TEXT("HardwareDetect")
    697 #define REGSTR_VAL_INHIBITRESULTS TEXT("InhibitResults")
    698 
    699 #define REGSTR_VAL_PROFILEFLAGS TEXT("ProfileFlags")
    700 
    701 #define REGSTR_KEY_PCMCIA TEXT("PCMCIA\\")
    702 #define REGSTR_KEY_PCUNKNOWN TEXT("UNKNOWN_MANUFACTURER")
    703 #define REGSTR_VAL_PCSSDRIVER TEXT("Driver")
    704 #define REGSTR_KEY_PCMTD TEXT("MTD-")
    705 #define REGSTR_VAL_PCMTDRIVER TEXT("MTD")
    706 
    707 #define REGSTR_VAL_HARDWAREID TEXT("HardwareID")
    708 
    709 #define REGSTR_VAL_INSTALLER TEXT("Installer")
    710 #define REGSTR_VAL_INSTALLER_32 TEXT("Installer32")
    711 #define REGSTR_VAL_INSICON TEXT("Icon")
    712 #define REGSTR_VAL_ENUMPROPPAGES TEXT("EnumPropPages")
    713 #define REGSTR_VAL_ENUMPROPPAGES_32 TEXT("EnumPropPages32")
    714 #define REGSTR_VAL_BASICPROPERTIES TEXT("BasicProperties")
    715 #define REGSTR_VAL_BASICPROPERTIES_32 TEXT("BasicProperties32")
    716 #define REGSTR_VAL_COINSTALLERS_32 TEXT("CoInstallers32")
    717 #define REGSTR_VAL_PRIVATEPROBLEM TEXT("PrivateProblem")
    718 
    719 #define REGSTR_KEY_CURRENT TEXT("Current")
    720 #define REGSTR_KEY_DEFAULT TEXT("Default")
    721 #define REGSTR_KEY_MODES TEXT("Modes")
    722 
    723 #define REGSTR_VAL_MODE TEXT("Mode")
    724 #define REGSTR_VAL_BPP TEXT("BPP")
    725 #define REGSTR_VAL_HRES TEXT("HRes")
    726 #define REGSTR_VAL_VRES TEXT("VRes")
    727 #define REGSTR_VAL_FONTSIZE TEXT("FontSize")
    728 #define REGSTR_VAL_DRV TEXT("drv")
    729 #define REGSTR_VAL_GRB TEXT("grb")
    730 #define REGSTR_VAL_VDD TEXT("vdd")
    731 #define REGSTR_VAL_VER TEXT("Ver")
    732 #define REGSTR_VAL_MAXRES TEXT("MaxResolution")
    733 #define REGSTR_VAL_DPMS TEXT("DPMS")
    734 #define REGSTR_VAL_RESUMERESET TEXT("ResumeReset")
    735 
    736 #define REGSTR_VAL_DESCRIPTION TEXT("Description")
    737 
    738 #define REGSTR_KEY_SYSTEM TEXT("System")
    739 #define REGSTR_KEY_USER TEXT("User")
    740 #define REGSTR_VAL_DPI TEXT("dpi")
    741 
    742 #define REGSTR_VAL_PCICOPTIONS TEXT("PCICOptions")
    743 
    744 #ifndef NEC_98
    745 #define PCIC_DEFAULT_IRQMASK 0x4EB8
    746 #else
    747 #define PCIC_DEFAULT_IRQMASK 0x1468
    748 #endif
    749 #define PCIC_DEFAULT_NUMSOCKETS 0
    750 #define REGSTR_VAL_PCICIRQMAP TEXT("PCICIRQMap")
    751 
    752 #define REGSTR_PATH_APPEARANCE TEXT("Control Panel\\Appearance")
    753 #define REGSTR_PATH_LOOKSCHEMES TEXT("Control Panel\\Appearance\\Schemes")
    754 #define REGSTR_VAL_CUSTOMCOLORS TEXT("CustomColors")
    755 
    756 #define REGSTR_PATH_SCREENSAVE TEXT("Control Panel\\Desktop")
    757 #define REGSTR_VALUE_USESCRPASSWORD TEXT("ScreenSaveUsePassword")
    758 #define REGSTR_VALUE_SCRPASSWORD TEXT("ScreenSave_Data")
    759 
    760 #define REGSTR_VALUE_LOWPOWERTIMEOUT TEXT("ScreenSaveLowPowerTimeout")
    761 #define REGSTR_VALUE_POWEROFFTIMEOUT TEXT("ScreenSavePowerOffTimeout")
    762 #define REGSTR_VALUE_LOWPOWERACTIVE TEXT("ScreenSaveLowPowerActive")
    763 #define REGSTR_VALUE_POWEROFFACTIVE TEXT("ScreenSavePowerOffActive")
    764 
    765 #define REGSTR_PATH_WINDOWSAPPLETS TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Applets")
    766 
    767 #define REGSTR_PATH_SYSTRAY TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\SysTray")
    768 #define REGSTR_VAL_SYSTRAYSVCS TEXT("Services")
    769 #define REGSTR_VAL_SYSTRAYBATFLAGS TEXT("PowerFlags")
    770 #define REGSTR_VAL_SYSTRAYPCCARDFLAGS TEXT("PCMCIAFlags")
    771 
    772 #define REGSTR_PATH_NETWORK_USERSETTINGS TEXT("Network")
    773 
    774 #define REGSTR_KEY_NETWORK_PERSISTENT TEXT("\\Persistent")
    775 #define REGSTR_KEY_NETWORK_RECENT TEXT("\\Recent")
    776 #define REGSTR_VAL_REMOTE_PATH TEXT("RemotePath")
    777 #define REGSTR_VAL_USER_NAME TEXT("UserName")
    778 #define REGSTR_VAL_PROVIDER_NAME TEXT("ProviderName")
    779 #define REGSTR_VAL_CONNECTION_TYPE TEXT("ConnectionType")
    780 #define REGSTR_VAL_UPGRADE TEXT("Upgrade")
    781 
    782 #define REGSTR_KEY_LOGON TEXT("\\Logon")
    783 #define REGSTR_VAL_MUSTBEVALIDATED TEXT("MustBeValidated")
    784 #define REGSTR_VAL_RUNLOGINSCRIPT TEXT("ProcessLoginScript")
    785 
    786 #define REGSTR_KEY_NETWORKPROVIDER TEXT("\\NetworkProvider")
    787 #define REGSTR_PATH_NW32NETPROVIDER REGSTR_PATH_SERVICES TEXT("\\NWNP32") REGSTR_KEY_NETWORKPROVIDER
    788 #define REGSTR_PATH_MS32NETPROVIDER REGSTR_PATH_SERVICES TEXT("\\MSNP32") REGSTR_KEY_NETWORKPROVIDER
    789 #define REGSTR_VAL_AUTHENT_AGENT TEXT("AuthenticatingAgent")
    790 
    791 #define REGSTR_VAL_PREFREDIR TEXT("PreferredRedir")
    792 #define REGSTR_VAL_AUTOSTART TEXT("AutoStart")
    793 #define REGSTR_VAL_AUTOLOGON TEXT("AutoLogon")
    794 #define REGSTR_VAL_NETCARD TEXT("Netcard")
    795 #define REGSTR_VAL_TRANSPORT TEXT("Transport")
    796 #define REGSTR_VAL_DYNAMIC TEXT("Dynamic")
    797 #define REGSTR_VAL_TRANSITION TEXT("Transition")
    798 #define REGSTR_VAL_STATICDRIVE TEXT("StaticDrive")
    799 #define REGSTR_VAL_LOADHI TEXT("LoadHi")
    800 #define REGSTR_VAL_LOADRMDRIVERS TEXT("LoadRMDrivers")
    801 #define REGSTR_VAL_SETUPN TEXT("SetupN")
    802 #define REGSTR_VAL_SETUPNPATH TEXT("SetupNPath")
    803 
    804 #define REGSTR_VAL_WRKGRP_FORCEMAPPING TEXT("WrkgrpForceMapping")
    805 #define REGSTR_VAL_WRKGRP_REQUIRED TEXT("WrkgrpRequired")
    806 
    807 #define REGSTR_PATH_CURRENT_CONTROL_SET TEXT("System\\CurrentControlSet\\Control")
    808 #define REGSTR_VAL_CURRENT_USER TEXT("Current User")
    809 
    810 #define REGSTR_PATH_PWDPROVIDER TEXT("System\\CurrentControlSet\\Control\\PwdProvider")
    811 #define REGSTR_VAL_PWDPROVIDER_PATH TEXT("ProviderPath")
    812 #define REGSTR_VAL_PWDPROVIDER_DESC TEXT("Description")
    813 #define REGSTR_VAL_PWDPROVIDER_CHANGEPWD TEXT("ChangePassword")
    814 #define REGSTR_VAL_PWDPROVIDER_CHANGEPWDHWND TEXT("ChangePasswordHwnd")
    815 #define REGSTR_VAL_PWDPROVIDER_GETPWDSTATUS TEXT("GetPasswordStatus")
    816 #define REGSTR_VAL_PWDPROVIDER_ISNP TEXT("NetworkProvider")
    817 #define REGSTR_VAL_PWDPROVIDER_CHANGEORDER TEXT("ChangeOrder")
    818 
    819 #define REGSTR_PATH_POLICIES TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Policies")
    820 
    821 #define REGSTR_PATH_UPDATE TEXT("System\\CurrentControlSet\\Control\\Update")
    822 #define REGSTR_VALUE_ENABLE TEXT("Enable")
    823 #define REGSTR_VALUE_VERBOSE TEXT("Verbose")
    824 #define REGSTR_VALUE_NETPATH TEXT("NetworkPath")
    825 #define REGSTR_VALUE_DEFAULTLOC TEXT("UseDefaultNetLocation")
    826 
    827 #define REGSTR_KEY_NETWORK TEXT("Network")
    828 #define REGSTR_KEY_SYSTEM TEXT("System")
    829 #define REGSTR_KEY_PRINTERS TEXT("Printers")
    830 #define REGSTR_KEY_WINOLDAPP TEXT("WinOldApp")
    831 
    832 #define REGSTR_VAL_NOFILESHARING TEXT("NoFileSharing")
    833 #define REGSTR_VAL_NOPRINTSHARING TEXT("NoPrintSharing")
    834 #define REGSTR_VAL_NOFILESHARINGCTRL TEXT("NoFileSharingControl")
    835 #define REGSTR_VAL_NOPRINTSHARINGCTRL TEXT("NoPrintSharingControl")
    836 #define REGSTR_VAL_HIDESHAREPWDS TEXT("HideSharePwds")
    837 #define REGSTR_VAL_DISABLEPWDCACHING TEXT("DisablePwdCaching")
    838 #define REGSTR_VAL_ALPHANUMPWDS TEXT("AlphanumPwds")
    839 #define REGSTR_VAL_NETSETUP_DISABLE TEXT("NoNetSetup")
    840 #define REGSTR_VAL_NETSETUP_NOCONFIGPAGE TEXT("NoNetSetupConfigPage")
    841 #define REGSTR_VAL_NETSETUP_NOIDPAGE TEXT("NoNetSetupIDPage")
    842 #define REGSTR_VAL_NETSETUP_NOSECURITYPAGE TEXT("NoNetSetupSecurityPage")
    843 #define REGSTR_VAL_SYSTEMCPL_NOVIRTMEMPAGE TEXT("NoVirtMemPage")
    844 #define REGSTR_VAL_SYSTEMCPL_NODEVMGRPAGE TEXT("NoDevMgrPage")
    845 #define REGSTR_VAL_SYSTEMCPL_NOCONFIGPAGE TEXT("NoConfigPage")
    846 #define REGSTR_VAL_SYSTEMCPL_NOFILESYSPAGE TEXT("NoFileSysPage")
    847 #define REGSTR_VAL_DISPCPL_NODISPCPL TEXT("NoDispCPL")
    848 #define REGSTR_VAL_DISPCPL_NOBACKGROUNDPAGE TEXT("NoDispBackgroundPage")
    849 #define REGSTR_VAL_DISPCPL_NOSCRSAVPAGE TEXT("NoDispScrSavPage")
    850 #define REGSTR_VAL_DISPCPL_NOAPPEARANCEPAGE TEXT("NoDispAppearancePage")
    851 #define REGSTR_VAL_DISPCPL_NOSETTINGSPAGE TEXT("NoDispSettingsPage")
    852 #define REGSTR_VAL_SECCPL_NOSECCPL TEXT("NoSecCPL")
    853 #define REGSTR_VAL_SECCPL_NOPWDPAGE TEXT("NoPwdPage")
    854 #define REGSTR_VAL_SECCPL_NOADMINPAGE TEXT("NoAdminPage")
    855 #define REGSTR_VAL_SECCPL_NOPROFILEPAGE TEXT("NoProfilePage")
    856 #define REGSTR_VAL_PRINTERS_HIDETABS TEXT("NoPrinterTabs")
    857 #define REGSTR_VAL_PRINTERS_NODELETE TEXT("NoDeletePrinter")
    858 #define REGSTR_VAL_PRINTERS_NOADD TEXT("NoAddPrinter")
    859 #define REGSTR_VAL_WINOLDAPP_DISABLED TEXT("Disabled")
    860 #define REGSTR_VAL_WINOLDAPP_NOREALMODE TEXT("NoRealMode")
    861 #define REGSTR_VAL_NOENTIRENETWORK TEXT("NoEntireNetwork")
    862 #define REGSTR_VAL_NOWORKGROUPCONTENTS TEXT("NoWorkgroupContents")
    863 
    864 #define REGSTR_VAL_UNDOCK_WITHOUT_LOGON TEXT("UndockWithoutLogon")
    865 
    866 #define REGSTR_VAL_MINPWDLEN TEXT("MinPwdLen")
    867 
    868 #define REGSTR_VAL_PWDEXPIRATION TEXT("PwdExpiration")
    869 
    870 #define REGSTR_VAL_WIN31PROVIDER TEXT("Win31Provider")
    871 
    872 #define REGSTR_VAL_DISABLEREGTOOLS TEXT("DisableRegistryTools")
    873 
    874 #define REGSTR_PATH_WINLOGON TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Winlogon")
    875 #define REGSTR_VAL_LEGALNOTICECAPTION TEXT("LegalNoticeCaption")
    876 #define REGSTR_VAL_LEGALNOTICETEXT TEXT("LegalNoticeText")
    877 #define REGSTR_VAL_DRIVE_SPINDOWN TEXT("NoDispSpinDown")
    878 
    879 #define REGSTR_VAL_RESTRICTRUN TEXT("RestrictRun")
    880 
    881 #define REGSTR_KEY_POL_USERS TEXT("Users")
    882 #define REGSTR_KEY_POL_COMPUTERS TEXT("Computers")
    883 #define REGSTR_KEY_POL_USERGROUPS TEXT("UserGroups")
    884 #define REGSTR_KEY_POL_DEFAULT TEXT(".default")
    885 #define REGSTR_KEY_POL_USERGROUPDATA TEXT("GroupData\\UserGroups\\Priority")
    886 
    887 #define REGSTR_PATH_TIMEZONE TEXT("System\\CurrentControlSet\\Control\\TimeZoneInformation")
    888 #define REGSTR_VAL_TZBIAS TEXT("Bias")
    889 #define REGSTR_VAL_TZDLTBIAS TEXT("DaylightBias")
    890 #define REGSTR_VAL_TZSTDBIAS TEXT("StandardBias")
    891 #define REGSTR_VAL_TZACTBIAS TEXT("ActiveTimeBias")
    892 #define REGSTR_VAL_TZDLTFLAG TEXT("DaylightFlag")
    893 #define REGSTR_VAL_TZSTDSTART TEXT("StandardStart")
    894 #define REGSTR_VAL_TZDLTSTART TEXT("DaylightStart")
    895 #define REGSTR_VAL_TZDLTNAME TEXT("DaylightName")
    896 #define REGSTR_VAL_TZSTDNAME TEXT("StandardName")
    897 #define REGSTR_VAL_TZNOCHANGESTART TEXT("NoChangeStart")
    898 #define REGSTR_VAL_TZNOCHANGEEND TEXT("NoChangeEnd")
    899 #define REGSTR_VAL_TZNOAUTOTIME TEXT("DisableAutoDaylightTimeSet")
    900 
    901 #define REGSTR_PATH_FLOATINGPOINTPROCESSOR TEXT("HARDWARE\\DESCRIPTION\\System\\FloatingPointProcessor")
    902 #define REGSTR_PATH_FLOATINGPOINTPROCESSOR0 TEXT("HARDWARE\\DESCRIPTION\\System\\FloatingPointProcessor\\0")
    903 
    904 #define REGSTR_PATH_COMPUTRNAME TEXT("System\\CurrentControlSet\\Control\\ComputerName\\ComputerName")
    905 #define REGSTR_VAL_COMPUTRNAME TEXT("ComputerName")
    906 
    907 #define REGSTR_PATH_SHUTDOWN TEXT("System\\CurrentControlSet\\Control\\Shutdown")
    908 #define REGSTR_VAL_FORCEREBOOT TEXT("ForceReboot")
    909 #define REGSTR_VAL_SETUPPROGRAMRAN TEXT("SetupProgramRan")
    910 #define REGSTR_VAL_DOES_POLLING TEXT("PollingSupportNeeded")
    911 
    912 #define REGSTR_PATH_KNOWNDLLS TEXT("System\\CurrentControlSet\\Control\\SessionManager\\KnownDLLs")
    913 #define REGSTR_PATH_KNOWN16DLLS TEXT("System\\CurrentControlSet\\Control\\SessionManager\\Known16DLLs")
    914 
    915 #define REGSTR_PATH_CHECKVERDLLS TEXT("System\\CurrentControlSet\\Control\\SessionManager\\CheckVerDLLs")
    916 #define REGSTR_PATH_WARNVERDLLS TEXT("System\\CurrentControlSet\\Control\\SessionManager\\WarnVerDLLs")
    917 
    918 #define REGSTR_PATH_HACKINIFILE TEXT("System\\CurrentControlSet\\Control\\SessionManager\\HackIniFiles")
    919 
    920 #define REGSTR_PATH_CHECKBADAPPS TEXT("System\\CurrentControlSet\\Control\\SessionManager\\CheckBadApps")
    921 
    922 #define REGSTR_PATH_APPPATCH TEXT("System\\CurrentControlSet\\Control\\SessionManager\\AppPatches")
    923 
    924 #define REGSTR_PATH_CHECKBADAPPS400 TEXT("System\\CurrentControlSet\\Control\\SessionManager\\CheckBadApps400")
    925 
    926 #define REGSTR_PATH_SHELLSERVICEOBJECT TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\ShellServiceObject")
    927 #define REGSTR_PATH_SHELLSERVICEOBJECTDELAYED TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\ShellServiceObjectDelayLoad")
    928 
    929 #define REGSTR_PATH_KNOWNVXDS TEXT("System\\CurrentControlSet\\Control\\SessionManager\\KnownVxDs")
    930 
    931 #define REGSTR_VAL_UNINSTALLER_DISPLAYNAME TEXT("DisplayName")
    932 #define REGSTR_VAL_UNINSTALLER_COMMANDLINE TEXT("UninstallString")
    933 
    934 #define REGSTR_VAL_REINSTALL_DISPLAYNAME TEXT("DisplayName")
    935 #define REGSTR_VAL_REINSTALL_STRING TEXT("ReinstallString")
    936 #define REGSTR_VAL_REINSTALL_DEVICEINSTANCEIDS TEXT("DeviceInstanceIds")
    937 
    938 #define REGSTR_PATH_DESKTOP REGSTR_PATH_SCREENSAVE
    939 #define REGSTR_PATH_MOUSE TEXT("Control Panel\\Mouse")
    940 #define REGSTR_PATH_KEYBOARD TEXT("Control Panel\\Keyboard")
    941 #define REGSTR_PATH_COLORS TEXT("Control Panel\\Colors")
    942 #define REGSTR_PATH_SOUND TEXT("Control Panel\\Sound")
    943 #define REGSTR_PATH_METRICS TEXT("Control Panel\\Desktop\\WindowMetrics")
    944 #define REGSTR_PATH_ICONS TEXT("Control Panel\\Icons")
    945 #define REGSTR_PATH_CURSORS TEXT("Control Panel\\Cursors")
    946 #define REGSTR_PATH_CHECKDISK TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\Check Drive")
    947 #define REGSTR_PATH_CHECKDISKSET TEXT("Settings")
    948 #define REGSTR_PATH_CHECKDISKUDRVS TEXT("NoUnknownDDErrDrvs")
    949 
    950 #define REGSTR_PATH_FAULT TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Fault")
    951 #define REGSTR_VAL_FAULT_LOGFILE TEXT("LogFile")
    952 
    953 #define REGSTR_PATH_AEDEBUG TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\AeDebug")
    954 #define REGSTR_VAL_AEDEBUG_DEBUGGER TEXT("Debugger")
    955 #define REGSTR_VAL_AEDEBUG_AUTO TEXT("Auto")
    956 
    957 #define REGSTR_PATH_GRPCONV TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\GrpConv")
    958 
    959 #define REGSTR_VAL_REGITEMDELETEMESSAGE TEXT("Removal Message")
    960 
    961 #define REGSTR_PATH_LASTCHECK TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\LastCheck")
    962 #define REGSTR_PATH_LASTOPTIMIZE TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\LastOptimize")
    963 #define REGSTR_PATH_LASTBACKUP TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\LastBackup")
    964 
    965 #define REGSTR_PATH_CHKLASTCHECK TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\Check Drive\\LastCheck")
    966 #define REGSTR_PATH_CHKLASTSURFAN TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Applets\\Check Drive\\LastSurfaceAnalysis")
    967 
    968 typedef struct _DSKTLSYSTEMTIME {
    969   WORD wYear;
    970   WORD wMonth;
    971   WORD wDayOfWeek;
    972   WORD wDay;
    973   WORD wHour;
    974   WORD wMinute;
    975   WORD wSecond;
    976   WORD wMilliseconds;
    977   WORD wResult;
    978 } DSKTLSYSTEMTIME,*PDSKTLSYSTEMTIME,*LPDSKTLSYSTEMTIME;
    979 
    980 #define DTRESULTOK 0
    981 #define DTRESULTFIX 1
    982 
    983 #define DTRESULTPROB 2
    984 
    985 #define DTRESULTPART 3
    986 
    987 #define REGSTR_KEY_SHARES TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Network\\LanMan")
    988 #define REGSTR_VAL_SHARES_FLAGS TEXT("Flags")
    989 #define REGSTR_VAL_SHARES_TYPE TEXT("Type")
    990 #define REGSTR_VAL_SHARES_PATH TEXT("Path")
    991 #define REGSTR_VAL_SHARES_REMARK TEXT("Remark")
    992 #define REGSTR_VAL_SHARES_RW_PASS TEXT("Parm1")
    993 #define REGSTR_VAL_SHARES_RO_PASS TEXT("Parm2")
    994 
    995 #define REGSTR_PATH_PRINT TEXT("System\\CurrentControlSet\\Control\\Print")
    996 #define REGSTR_PATH_PRINTERS TEXT("System\\CurrentControlSet\\Control\\Print\\Printers")
    997 #define REGSTR_PATH_PROVIDERS TEXT("System\\CurrentControlSet\\Control\\Print\\Providers")
    998 #define REGSTR_PATH_MONITORS TEXT("System\\CurrentControlSet\\Control\\Print\\Monitors")
    999 #define REGSTR_PATH_ENVIRONMENTS TEXT("System\\CurrentControlSet\\Control\\Print\\Environments")
   1000 #define REGSTR_VAL_START_ON_BOOT TEXT("StartOnBoot")
   1001 #define REGSTR_VAL_PRINTERS_MASK TEXT("PrintersMask")
   1002 #define REGSTR_VAL_DOS_SPOOL_MASK TEXT("DOSSpoolMask")
   1003 #define REGSTR_KEY_CURRENT_ENV TEXT("\\Windows 4.0")
   1004 #define REGSTR_KEY_DRIVERS TEXT("\\Drivers")
   1005 #define REGSTR_KEY_PRINT_PROC TEXT("\\Print Processors")
   1006 
   1007 #define REGSTR_PATH_EVENTLABELS TEXT("AppEvents\\EventLabels")
   1008 #define REGSTR_PATH_SCHEMES TEXT("AppEvents\\Schemes")
   1009 #define REGSTR_PATH_APPS REGSTR_PATH_SCHEMES TEXT("\\Apps")
   1010 #define REGSTR_PATH_APPS_DEFAULT REGSTR_PATH_SCHEMES TEXT("\\Apps\\.Default")
   1011 #define REGSTR_PATH_NAMES REGSTR_PATH_SCHEMES TEXT("\\Names")
   1012 #define REGSTR_PATH_MULTIMEDIA REGSTR_PATH_SETUP TEXT("\\Multimedia")
   1013 #define REGSTR_PATH_MULTIMEDIA_AUDIO TEXT("Software\\Microsoft\\Multimedia\\Audio")
   1014 #define REGSTR_PATH_MULTIMEDIA_AUDIO_IMAGES REGSTR_PATH_MULTIMEDIA_AUDIO TEXT("\\Images")
   1015 
   1016 #define REGSTR_PATH_MEDIARESOURCES REGSTR_PATH_CURRENT_CONTROL_SET TEXT("\\MediaResources")
   1017 #define REGSTR_PATH_MEDIAPROPERTIES REGSTR_PATH_CURRENT_CONTROL_SET TEXT("\\MediaProperties")
   1018 #define REGSTR_PATH_PRIVATEPROPERTIES REGSTR_PATH_MEDIAPROPERTIES TEXT("\\PrivateProperties")
   1019 #define REGSTR_PATH_PUBLICPROPERTIES REGSTR_PATH_MEDIAPROPERTIES TEXT("\\PublicProperties")
   1020 
   1021 #define REGSTR_PATH_JOYOEM REGSTR_PATH_PRIVATEPROPERTIES TEXT("\\Joystick\\OEM")
   1022 #define REGSTR_PATH_JOYCONFIG REGSTR_PATH_MEDIARESOURCES TEXT("\\Joystick")
   1023 #define REGSTR_KEY_JOYCURR TEXT("CurrentJoystickSettings")
   1024 #define REGSTR_KEY_JOYSETTINGS TEXT("JoystickSettings")
   1025 
   1026 #define REGSTR_VAL_JOYUSERVALUES TEXT("JoystickUserValues")
   1027 #define REGSTR_VAL_JOYCALLOUT TEXT("JoystickCallout")
   1028 
   1029 #define REGSTR_VAL_JOYNCONFIG TEXT("Joystick%dConfiguration")
   1030 #define REGSTR_VAL_JOYNOEMNAME TEXT("Joystick%dOEMName")
   1031 #define REGSTR_VAL_JOYNOEMCALLOUT TEXT("Joystick%dOEMCallout")
   1032 
   1033 #define REGSTR_VAL_JOYOEMCALLOUT TEXT("OEMCallout")
   1034 #define REGSTR_VAL_JOYOEMNAME TEXT("OEMName")
   1035 #define REGSTR_VAL_JOYOEMDATA TEXT("OEMData")
   1036 #define REGSTR_VAL_JOYOEMXYLABEL TEXT("OEMXYLabel")
   1037 #define REGSTR_VAL_JOYOEMZLABEL TEXT("OEMZLabel")
   1038 #define REGSTR_VAL_JOYOEMRLABEL TEXT("OEMRLabel")
   1039 #define REGSTR_VAL_JOYOEMPOVLABEL TEXT("OEMPOVLabel")
   1040 #define REGSTR_VAL_JOYOEMULABEL TEXT("OEMULabel")
   1041 #define REGSTR_VAL_JOYOEMVLABEL TEXT("OEMVLabel")
   1042 #define REGSTR_VAL_JOYOEMTESTMOVEDESC TEXT("OEMTestMoveDesc")
   1043 #define REGSTR_VAL_JOYOEMTESTBUTTONDESC TEXT("OEMTestButtonDesc")
   1044 #define REGSTR_VAL_JOYOEMTESTMOVECAP TEXT("OEMTestMoveCap")
   1045 #define REGSTR_VAL_JOYOEMTESTBUTTONCAP TEXT("OEMTestButtonCap")
   1046 #define REGSTR_VAL_JOYOEMTESTWINCAP TEXT("OEMTestWinCap")
   1047 #define REGSTR_VAL_JOYOEMCALCAP TEXT("OEMCalCap")
   1048 #define REGSTR_VAL_JOYOEMCALWINCAP TEXT("OEMCalWinCap")
   1049 #define REGSTR_VAL_JOYOEMCAL1 TEXT("OEMCal1")
   1050 #define REGSTR_VAL_JOYOEMCAL2 TEXT("OEMCal2")
   1051 #define REGSTR_VAL_JOYOEMCAL3 TEXT("OEMCal3")
   1052 #define REGSTR_VAL_JOYOEMCAL4 TEXT("OEMCal4")
   1053 #define REGSTR_VAL_JOYOEMCAL5 TEXT("OEMCal5")
   1054 #define REGSTR_VAL_JOYOEMCAL6 TEXT("OEMCal6")
   1055 #define REGSTR_VAL_JOYOEMCAL7 TEXT("OEMCal7")
   1056 #define REGSTR_VAL_JOYOEMCAL8 TEXT("OEMCal8")
   1057 #define REGSTR_VAL_JOYOEMCAL9 TEXT("OEMCal9")
   1058 #define REGSTR_VAL_JOYOEMCAL10 TEXT("OEMCal10")
   1059 #define REGSTR_VAL_JOYOEMCAL11 TEXT("OEMCal11")
   1060 #define REGSTR_VAL_JOYOEMCAL12 TEXT("OEMCal12")
   1061 
   1062 #define REGSTR_VAL_AUDIO_BITMAP TEXT("bitmap")
   1063 #define REGSTR_VAL_AUDIO_ICON TEXT("icon")
   1064 
   1065 #define REGSTR_PATH_DEVICEINSTALLER TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Device Installer")
   1066 
   1067 #define REGSTR_VAL_SEARCHOPTIONS TEXT("SearchOptions")
   1068 
   1069 #define REGSTR_PATH_BIOSINFO TEXT("System\\CurrentControlSet\\Control\\BiosInfo")
   1070 #define REGSTR_PATH_PCIIR TEXT("System\\CurrentControlSet\\Control\\Pnp\\PciIrqRouting")
   1071 #define REGSTR_VAL_OPTIONS TEXT("Options")
   1072 #define REGSTR_VAL_STAT TEXT("Status")
   1073 #define REGSTR_VAL_TABLE_STAT TEXT("TableStatus")
   1074 #define REGSTR_VAL_MINIPORT_STAT TEXT("MiniportStatus")
   1075 
   1076 #define PIR_OPTION_ENABLED 0x00000001
   1077 #define PIR_OPTION_REGISTRY 0x00000002
   1078 #define PIR_OPTION_MSSPEC 0x00000004
   1079 #define PIR_OPTION_REALMODE 0x00000008
   1080 #define PIR_OPTION_DEFAULT 0x0000000f
   1081 
   1082 #define PIR_STATUS_ERROR 0x00000000
   1083 #define PIR_STATUS_ENABLED 0x00000001
   1084 #define PIR_STATUS_DISABLED 0x00000002
   1085 #define PIR_STATUS_MAX 0x00000003
   1086 
   1087 #define PIR_STATUS_TABLE_REGISTRY 0x00000000
   1088 #define PIR_STATUS_TABLE_MSSPEC 0x00000001
   1089 #define PIR_STATUS_TABLE_REALMODE 0x00000002
   1090 #define PIR_STATUS_TABLE_NONE 0x00000003
   1091 #define PIR_STATUS_TABLE_ERROR 0x00000004
   1092 #define PIR_STATUS_TABLE_BAD 0x00000005
   1093 #define PIR_STATUS_TABLE_SUCCESS 0x00000006
   1094 #define PIR_STATUS_TABLE_MAX 0x00000007
   1095 
   1096 #define PIR_STATUS_MINIPORT_NORMAL 0x00000000
   1097 #define PIR_STATUS_MINIPORT_COMPATIBLE 0x00000001
   1098 #define PIR_STATUS_MINIPORT_OVERRIDE 0x00000002
   1099 #define PIR_STATUS_MINIPORT_NONE 0x00000003
   1100 #define PIR_STATUS_MINIPORT_ERROR 0x00000004
   1101 #define PIR_STATUS_MINIPORT_NOKEY 0x00000005
   1102 #define PIR_STATUS_MINIPORT_SUCCESS 0x00000006
   1103 #define PIR_STATUS_MINIPORT_INVALID 0x00000007
   1104 #define PIR_STATUS_MINIPORT_MAX 0x00000008
   1105 
   1106 #define REGSTR_PATH_LASTGOOD TEXT("System\\LastKnownGoodRecovery\\LastGood")
   1107 #define REGSTR_PATH_LASTGOODTMP TEXT("System\\LastKnownGoodRecovery\\LastGood.Tmp")
   1108 
   1109 #define LASTGOOD_OPERATION 0x000000FF
   1110 #define LASTGOOD_OPERATION_NOPOSTPROC 0x00000000
   1111 #define LASTGOOD_OPERATION_DELETE 0x00000001
   1112 #endif
   1113