mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[SETUPAPI] GetDeviceInstanceKeyPath: Implement the CM_REGISTRY_SOFTWARE | CM_REGISTRY_CONFIG part.
This commit is contained in:
parent
a2ed758a20
commit
8e850d19bc
1 changed files with 30 additions and 1 deletions
|
@ -210,7 +210,36 @@ GetDeviceInstanceKeyPath(
|
|||
if (ulFlags & CM_REGISTRY_SOFTWARE)
|
||||
{
|
||||
/* Software Key Path */
|
||||
ret = CR_CALL_NOT_IMPLEMENTED;
|
||||
|
||||
if (ulFlags & CM_REGISTRY_CONFIG)
|
||||
{
|
||||
SplitDeviceInstanceId(pszDeviceInst,
|
||||
pszBuffer,
|
||||
pszInstancePath);
|
||||
|
||||
if (ulHardwareProfile == 0)
|
||||
{
|
||||
wsprintfW(pszKeyPath,
|
||||
L"%s\\%s\\%s\\%s",
|
||||
L"System\\CurrentControlSet\\Hardware Profiles",
|
||||
L"Current",
|
||||
L"System\\CurrentControlSet\\Control\\Enum",
|
||||
pszBuffer);
|
||||
}
|
||||
else
|
||||
{
|
||||
wsprintfW(pszKeyPath,
|
||||
L"%s\\%04lu\\%s\\%s",
|
||||
L"System\\CurrentControlSet\\Hardware Profiles",
|
||||
ulHardwareProfile,
|
||||
L"System\\CurrentControlSet\\Control\\Enum",
|
||||
pszBuffer);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ret = CR_CALL_NOT_IMPLEMENTED;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue