Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.06.20;
Скачать: CL | DM;

Вниз

SetupInstallFromInfSection   Найти похожие ветки 

 
Leon_O   (2002-04-16 21:45) [0]

Эсть такая функция SetupInstallFromInfSection в Setupapi.dll
В одном из ее параметров нужно указать куда именно копировать реестровские данные по умолчанию. Но проблема в том что этот параметр цыфровой и на сколько мне известно он может быть равен только таким значениям как: HKLM (HKEY_LOCAL_MACHINE), HKCU (HKEY_CURRENT_USER) и т.д.
А мне нужно например путь HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Class

Помогите кто может!!!


 
Anatoly Podgoretsky ©   (2002-04-16 21:49) [1]

Путь не правильный, это виртуальная форма, правильный \SYSTEM\CurrentControlSet\Services\Class, а секция HKEY_LOCAL_MACHINE


 
Leon_O   (2002-04-17 20:38) [2]

Anatoly Podgoretsky возможно Вы не поняли суть вопроса. Дело не в пути, а в том как этот путь передать в функцию.

Функция SetupInstallFromInfSection в документации MS SDK описана так:

The SetupInstallFromInfSection function carries out directives in an INF file Install section.

BOOL SetupInstallFromInfSection(

HWND Owner, // optional, handle of a parent window
HINF InfHandle, // handle to the INF file
PCTSTR SectionName, // section of the INF file to install
UINT Flags, // which lines to install from section
HKEY RelativeKeyRoot, // optional, key for registry installs
PCTSTR SourceRootPath, // optional, path for source files
UINT CopyFlags, // optional, specifies copy behavior
PSP_FILE_CALLBACK MsgHandler, // optional, specifies callback routine
PVOID Context, // optional, callback routine context
HDEVINFO DeviceInfoSet, // optional, device information set
PSP_DEVINFO_DATA DeviceInfoData // optional, device info structure
);

а нужный параметр так:

RelativeKeyRoot

This optional parameter must be specified if Flags includes SPINST_REGISTRY or SPINST_INI2REG. Specifies a handle to a registry key to be used as the root when the INF file specifies HKR as the key.


Так как же быть с Этим: \SYSTEM\CurrentControlSet\Services\Class, а секция HKEY_LOCAL_MACHINE

Или может я чего неправильно перевел?


 
Anatoly Podgoretsky ©   (2002-04-17 20:54) [3]

Да видимо не совсем понял, может речь идет об подобном

HKLM,Software\Matrox\PowerDesk\Version6\WindowControl,SysHookAllowed,0x00000001,0

HKCR,CLSID\{F8E7DB61-9CA0-11d1-AD83-00A024D24BF3},,,"Matrox Powerdesk Kernel"

Это как раз из Inf файла



Страницы: 1 вся ветка

Текущий архив: 2002.06.20;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.012 c
14-65225
Digitman
2002-05-17 17:29
2002.06.20
WinGate v4.5x +Win2000 server


3-64959
Ferrarium
2002-05-27 19:26
2002.06.20
Помучаем DBGRID?


14-65217
wHammer
2002-05-17 14:43
2002.06.20
Без темы


14-65214
Демон
2002-05-17 18:55
2002.06.20
Про модем, но не по делфям


14-65228
wHammer
2002-05-17 14:43
2002.06.20
Без темы