mirror of
https://github.com/reactos/reactos.git
synced 2024-07-13 16:15:05 +00:00
Add a stub for SetupDiDeleteDevRegKey
svn path=/trunk/; revision=30325
This commit is contained in:
parent
c39ceb22e6
commit
040332c006
|
@ -3553,3 +3553,60 @@ cleanup:
|
||||||
TRACE("Returning %d\n", ret);
|
TRACE("Returning %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* SetupDiDeleteDevRegKey (SETUPAPI.@)
|
||||||
|
*/
|
||||||
|
BOOL WINAPI SetupDiDeleteDevRegKey(
|
||||||
|
HDEVINFO DeviceInfoSet,
|
||||||
|
PSP_DEVINFO_DATA DeviceInfoData,
|
||||||
|
DWORD Scope,
|
||||||
|
DWORD HwProfile,
|
||||||
|
DWORD KeyType)
|
||||||
|
{
|
||||||
|
struct DeviceInfoSet *set = (struct DeviceInfoSet *)DeviceInfoSet;
|
||||||
|
struct DeviceInfo *devInfo;
|
||||||
|
BOOL ret = FALSE;
|
||||||
|
|
||||||
|
TRACE("%p %p %d %d %d\n", DeviceInfoSet, DeviceInfoData, Scope, HwProfile,
|
||||||
|
KeyType);
|
||||||
|
|
||||||
|
if (!DeviceInfoSet || DeviceInfoSet == (HDEVINFO)INVALID_HANDLE_VALUE)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_HANDLE);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if (set->magic != SETUP_DEVICE_INFO_SET_MAGIC)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_HANDLE);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if (!DeviceInfoData || DeviceInfoData->cbSize != sizeof(SP_DEVINFO_DATA)
|
||||||
|
|| !DeviceInfoData->Reserved)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if (Scope != DICS_FLAG_GLOBAL && Scope != DICS_FLAG_CONFIGSPECIFIC)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_FLAGS);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
if (KeyType != DIREG_DEV && KeyType != DIREG_DRV)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_FLAGS);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
devInfo = (struct DeviceInfo *)DeviceInfoData->Reserved;
|
||||||
|
if (devInfo->set != set)
|
||||||
|
{
|
||||||
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
switch (KeyType)
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
WARN("unknown KeyType %d\n", KeyType);
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
|
@ -289,7 +289,7 @@
|
||||||
@ stdcall SetupDiCreateDeviceInfoList(ptr ptr)
|
@ stdcall SetupDiCreateDeviceInfoList(ptr ptr)
|
||||||
@ stdcall SetupDiCreateDeviceInfoListExA(ptr long str ptr)
|
@ stdcall SetupDiCreateDeviceInfoListExA(ptr long str ptr)
|
||||||
@ stdcall SetupDiCreateDeviceInfoListExW(ptr long wstr ptr)
|
@ stdcall SetupDiCreateDeviceInfoListExW(ptr long wstr ptr)
|
||||||
@ stub SetupDiDeleteDevRegKey
|
@ stdcall SetupDiDeleteDevRegKey(ptr ptr long long long)
|
||||||
@ stdcall SetupDiDeleteDeviceInfo(long ptr)
|
@ stdcall SetupDiDeleteDeviceInfo(long ptr)
|
||||||
@ stub SetupDiDeleteDeviceInterfaceData
|
@ stub SetupDiDeleteDeviceInterfaceData
|
||||||
@ stdcall SetupDiDestroyClassImageList(ptr)
|
@ stdcall SetupDiDestroyClassImageList(ptr)
|
||||||
|
|
Loading…
Reference in a new issue