mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
implemented SetupDiCreateDevRegKeyA
svn path=/trunk/; revision=18840
This commit is contained in:
parent
86bb1f6892
commit
6ea94e6059
2 changed files with 37 additions and 2 deletions
|
@ -3486,7 +3486,42 @@ BOOL WINAPI SetupDiSetDeviceInstallParamsW(
|
|||
}
|
||||
|
||||
/***********************************************************************
|
||||
* SetupDiCreateDevRegKey (SETUPAPI.@)
|
||||
* SetupDiCreateDevRegKeyA (SETUPAPI.@)
|
||||
*/
|
||||
HKEY WINAPI SetupDiCreateDevRegKeyA(
|
||||
IN HDEVINFO DeviceInfoSet,
|
||||
IN PSP_DEVINFO_DATA DeviceInfoData,
|
||||
IN DWORD Scope,
|
||||
IN DWORD HwProfile,
|
||||
IN DWORD KeyType,
|
||||
IN HINF InfHandle OPTIONAL,
|
||||
IN PCSTR InfSectionName OPTIONAL)
|
||||
{
|
||||
PCWSTR InfSectionNameW = NULL;
|
||||
HKEY ret = INVALID_HANDLE_VALUE;
|
||||
|
||||
if (InfSectionName)
|
||||
{
|
||||
InfSectionNameW = MultiByteToUnicode(InfSectionName, CP_ACP);
|
||||
if (InfSectionNameW == NULL) return INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
||||
ret = SetupDiCreateDevRegKeyW(DeviceInfoSet,
|
||||
DeviceInfoData,
|
||||
Scope,
|
||||
HwProfile,
|
||||
KeyType,
|
||||
InfHandle,
|
||||
InfSectionNameW);
|
||||
|
||||
if (InfSectionNameW != NULL)
|
||||
MyFree((PVOID)InfSectionNameW);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* SetupDiCreateDevRegKeyW (SETUPAPI.@)
|
||||
*/
|
||||
HKEY WINAPI SetupDiCreateDevRegKeyW(
|
||||
IN HDEVINFO DeviceInfoSet,
|
||||
|
|
|
@ -281,7 +281,7 @@
|
|||
@ stdcall SetupDiClassNameFromGuidExA(ptr str long ptr wstr ptr)
|
||||
@ stdcall SetupDiClassNameFromGuidExW(ptr wstr long ptr wstr ptr)
|
||||
@ stdcall SetupDiClassNameFromGuidW(ptr wstr long ptr)
|
||||
@ stub SetupDiCreateDevRegKeyA
|
||||
@ stdcall SetupDiCreateDevRegKeyA(ptr ptr long long long ptr str)
|
||||
@ stdcall SetupDiCreateDevRegKeyW(ptr ptr long long long ptr wstr)
|
||||
@ stdcall SetupDiCreateDeviceInfoA(ptr str ptr str ptr long ptr)
|
||||
@ stdcall SetupDiCreateDeviceInfoW(ptr wstr ptr wstr ptr long ptr)
|
||||
|
|
Loading…
Reference in a new issue