setupapi: Always return an empty list from SetupDiGetClassDevs.

This commit is contained in:
Hans Leidekker 2007-02-20 12:03:31 +01:00 committed by Alexandre Julliard
parent 939e8e4ce2
commit 7a039ebbf1

View file

@ -648,7 +648,7 @@ SetupDiCreateDeviceInfoListExA(const GUID *ClassGuid,
* with this list.
* hwndParent [I] hwnd needed for interface related actions.
* MachineName [I] name of machine to create emtpy DeviceInfoSet list, if NULL
* local regestry will be used.
* local registry will be used.
* Reserved [I] must be NULL
*
* RETURNS
@ -772,6 +772,7 @@ BOOL WINAPI SetupDiEnumDeviceInfo(
if(info->cbSize < sizeof(*info))
return FALSE;
SetLastError(ERROR_NO_MORE_ITEMS);
return FALSE;
}
@ -1008,32 +1009,11 @@ HDEVINFO WINAPI SetupDiGetClassDevsW(
HWND parent,
DWORD flags)
{
HDEVINFO ret = (HDEVINFO)INVALID_HANDLE_VALUE;
TRACE("%s %s %p 0x%08x\n", debugstr_guid(class), debugstr_w(enumstr), parent, flags);
TRACE("%s %s %p 0x%08x\n", debugstr_guid(class), debugstr_w(enumstr),
parent, flags);
if(flags & DIGCF_DEVICEINTERFACE)
{
if(!class)
SetLastError(ERROR_INVALID_PARAMETER);
else
{
/* WinXP always succeeds, returns empty list for unknown classes */
FIXME(": returning empty list\n");
ret = SetupDiCreateDeviceInfoList(class, parent);
}
}
else if (enumstr)
FIXME(": unimplemented for enumerator strings (%s)\n",
debugstr_w(enumstr));
else if (flags & DIGCF_ALLCLASSES)
FIXME(": unimplemented for DIGCF_ALLCLASSES\n");
else
{
FIXME("(%s): stub\n", debugstr_guid(class));
}
return ret;
/* WinXP always succeeds, returns empty list for unknown classes */
FIXME("returning empty list\n");
return SetupDiCreateDeviceInfoList(class, parent);
}
/***********************************************************************