From 0138ea49ed24c972733b6523112c251c2e95dbf7 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Thu, 11 Oct 2007 13:23:56 -0700 Subject: [PATCH] setupapi: Add stubs for SetupDiCreateDevRegKeyA/W. --- dlls/setupapi/devinst.c | 34 ++++++++++++++++++++++++++++++++++ dlls/setupapi/setupapi.spec | 4 ++-- include/setupapi.h | 4 ++-- 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/dlls/setupapi/devinst.c b/dlls/setupapi/devinst.c index a9d9aa376c0..7f9826c4bf2 100644 --- a/dlls/setupapi/devinst.c +++ b/dlls/setupapi/devinst.c @@ -1147,6 +1147,40 @@ SetupDiCreateDeviceInfoListExW(const GUID *ClassGuid, return (HDEVINFO)list; } +/*********************************************************************** + * SetupDiCreateDevRegKeyA (SETUPAPI.@) + */ +HKEY WINAPI SetupDiCreateDevRegKeyA( + HDEVINFO DeviceInfoSet, + PSP_DEVINFO_DATA DeviceInfoData, + DWORD Scope, + DWORD HwProfile, + DWORD KeyType, + HINF InfHandle, + PCSTR InfSectionName) +{ + FIXME("%p %p %d %d %d %p %s\n", DeviceInfoSet, DeviceInfoData, Scope, + HwProfile, KeyType, InfHandle, debugstr_a(InfSectionName)); + return INVALID_HANDLE_VALUE; +} + +/*********************************************************************** + * SetupDiCreateDevRegKeyW (SETUPAPI.@) + */ +HKEY WINAPI SetupDiCreateDevRegKeyW( + HDEVINFO DeviceInfoSet, + PSP_DEVINFO_DATA DeviceInfoData, + DWORD Scope, + DWORD HwProfile, + DWORD KeyType, + HINF InfHandle, + PCWSTR InfSectionName) +{ + FIXME("%p %p %d %d %d %p %s\n", DeviceInfoSet, DeviceInfoData, Scope, + HwProfile, KeyType, InfHandle, debugstr_w(InfSectionName)); + return INVALID_HANDLE_VALUE; +} + /*********************************************************************** * SetupDiCreateDeviceInfoA (SETUPAPI.@) */ diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec index f9589b1342b..f6ed8edf4d0 100644 --- a/dlls/setupapi/setupapi.spec +++ b/dlls/setupapi/setupapi.spec @@ -281,8 +281,8 @@ @ stdcall SetupDiClassNameFromGuidExA(ptr str long ptr wstr ptr) @ stdcall SetupDiClassNameFromGuidExW(ptr wstr long ptr wstr ptr) @ stdcall SetupDiClassNameFromGuidW(ptr wstr long ptr) -@ stub SetupDiCreateDevRegKeyA -@ stub SetupDiCreateDevRegKeyW +@ stdcall SetupDiCreateDevRegKeyA(ptr ptr long long long ptr str) +@ stdcall SetupDiCreateDevRegKeyW(ptr ptr long long long ptr wstr) @ stdcall SetupDiCreateDeviceInfoA(long str ptr str long long ptr) @ stdcall SetupDiCreateDeviceInfoList(ptr ptr) @ stdcall SetupDiCreateDeviceInfoListExA(ptr long str ptr) diff --git a/include/setupapi.h b/include/setupapi.h index 3169807b33a..93797253252 100644 --- a/include/setupapi.h +++ b/include/setupapi.h @@ -1463,8 +1463,8 @@ BOOL WINAPI SetupDiCreateDeviceInterfaceW(HDEVINFO, PSP_DEVINFO_DATA, const HKEY WINAPI SetupDiCreateDeviceInterfaceRegKeyA(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, REGSAM, HINF, PCSTR); HKEY WINAPI SetupDiCreateDeviceInterfaceRegKeyW(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, REGSAM, HINF, PCWSTR); #define SetupDiCreateDeviceInterfaceRegKey WINELIB_NAME_AW(SetupDiCreateDeviceInterfaceRegKey) -BOOL WINAPI SetupDiCreateDevRegKeyA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCSTR); -BOOL WINAPI SetupDiCreateDevRegKeyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCWSTR); +HKEY WINAPI SetupDiCreateDevRegKeyA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCSTR); +HKEY WINAPI SetupDiCreateDevRegKeyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCWSTR); #define SetupDiCreateDevRegKey WINELIB_NAME_AW(SetupDiCreateDevRegKey) BOOL WINAPI SetupDiDeleteDeviceInfo(HDEVINFO, PSP_DEVINFO_DATA); BOOL WINAPI SetupDiDeleteDeviceInterfaceData(HDEVINFO, PSP_DEVICE_INTERFACE_DATA);