grozny
Гость
|
|
« Ответ #1 : 26-04-2004 23:07 » |
|
есть. см. раздел Device Installation в хелпе от ХР ДДК.
В реестре надо написать пару строчек. Обычно это делается с помощью .inf. Либо ко-инсталлятора (co-installer) если что-то нетривиальное. Примеры простых .inf есть в самом ДДК.
цитата:
The HKLM\SYSTEM\CurrentControlSet\Services registry tree stores information about each service on the system. Each driver has a key of the form HKLM\SYSTEM\CurrentControlSet\Services\DriverName. The PnP Manager passes this path to a driver in the RegistryPath parameter when it calls the driver's DriverEntry routine. A driver can store global driver-defined data under its key in the Services tree. Information stored under this key is available to the driver during its initialization.
The following keys and value entries are of particular interest:
ImagePath
A value entry that specifies the fully qualified path of the driver's image file. Setup creates this value using the required ServiceBinary entry in the driver's INF file. This entry is in the service-install-section referenced by the driver's INF AddService directive. A typical value for this path is %windir%\system32\Drivers\DriverName.sys, where DriverName is the name of the driver's Services key. Parameters
A key used to store driver-specific data. For some types of drivers, the system expects to find specific value entries. You can add value entries to this subkey using AddReg entries in the driver's INF file.
|