Commit e45f8409 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

setupapi: Implement SetupDiGetClassDevsW on top of SetupDiGetClassDevsExW.

parent 4e068741
...@@ -2061,29 +2061,8 @@ HDEVINFO WINAPI SetupDiGetClassDevsW( ...@@ -2061,29 +2061,8 @@ HDEVINFO WINAPI SetupDiGetClassDevsW(
HWND parent, HWND parent,
DWORD flags) DWORD flags)
{ {
static const DWORD unsupportedFlags = DIGCF_DEFAULT | DIGCF_PRESENT | return SetupDiGetClassDevsExW(class, enumstr, parent, flags, NULL, NULL,
DIGCF_PROFILE; NULL);
HDEVINFO set;
TRACE("%s %s %p 0x%08x\n", debugstr_guid(class), debugstr_w(enumstr), parent, flags);
if (!(flags & DIGCF_ALLCLASSES) && !class)
{
SetLastError(ERROR_INVALID_PARAMETER);
return NULL;
}
if (flags & unsupportedFlags)
WARN("unsupported flags %08x\n", flags & unsupportedFlags);
/* WinXP always succeeds, returns empty list for unknown classes */
set = SetupDiCreateDeviceInfoList(class, parent);
if (set)
{
if (flags & DIGCF_DEVICEINTERFACE)
SETUPDI_EnumerateInterfaces(set, class, enumstr, flags);
else
SETUPDI_EnumerateDevices(set, class, enumstr, flags);
}
return set;
} }
/*********************************************************************** /***********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment