Commit ae45fa68 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

setupapi: Add stub implementations of CM_Get_Device_ID_ListW and CM_Enumerate_Classes.

parent b0dcfa7a
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
@ stub CM_Dup_Range_List @ stub CM_Dup_Range_List
@ stub CM_Enable_DevNode @ stub CM_Enable_DevNode
@ stub CM_Enable_DevNode_Ex @ stub CM_Enable_DevNode_Ex
@ stub CM_Enumerate_Classes @ stdcall CM_Enumerate_Classes(long ptr long)
@ stub CM_Enumerate_Classes_Ex @ stub CM_Enumerate_Classes_Ex
@ stub CM_Enumerate_EnumeratorsA @ stub CM_Enumerate_EnumeratorsA
@ stub CM_Enumerate_EnumeratorsW @ stub CM_Enumerate_EnumeratorsW
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
@ stdcall CM_Get_Device_IDW(ptr ptr long long) @ stdcall CM_Get_Device_IDW(ptr ptr long long)
@ stub CM_Get_Device_ID_ExA @ stub CM_Get_Device_ID_ExA
@ stub CM_Get_Device_ID_ExW @ stub CM_Get_Device_ID_ExW
@ stdcall CM_Get_Device_ID_ListA(ptr ptr long long) @ stdcall CM_Get_Device_ID_ListA(str ptr long long)
@ stub CM_Get_Device_ID_ListW @ stdcall CM_Get_Device_ID_ListW(wstr ptr long long)
@ stub CM_Get_Device_ID_List_ExA @ stub CM_Get_Device_ID_List_ExA
@ stub CM_Get_Device_ID_List_ExW @ stub CM_Get_Device_ID_List_ExW
@ stub CM_Get_Device_ID_List_SizeA @ stub CM_Get_Device_ID_List_SizeA
......
...@@ -100,12 +100,24 @@ CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle) ...@@ -100,12 +100,24 @@ CONFIGRET WINAPI CM_Disconnect_Machine(HMACHINE handle)
/*********************************************************************** /***********************************************************************
* CM_Get_Device_ID_ListA (SETUPAPI.@) * CM_Get_Device_ID_ListA (SETUPAPI.@)
*/ */
CONFIGRET WINAPI CM_Get_Device_ID_ListA( CONFIGRET WINAPI CM_Get_Device_ID_ListA(
PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags ) PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
{ {
FIXME("%p %p %d %d\n", pszFilter, Buffer, BufferLen, ulFlags ); FIXME("%s %p %d 0x%08x\n", debugstr_a(pszFilter), Buffer, BufferLen, ulFlags);
memset(Buffer,0,2);
if (BufferLen >= 2) Buffer[0] = Buffer[1] = 0;
return CR_SUCCESS;
}
/***********************************************************************
* CM_Get_Device_ID_ListW (SETUPAPI.@)
*/
CONFIGRET WINAPI CM_Get_Device_ID_ListW(
PCWSTR pszFilter, PWCHAR Buffer, ULONG BufferLen, ULONG ulFlags )
{
FIXME("%s %p %d 0x%08x\n", debugstr_w(pszFilter), Buffer, BufferLen, ulFlags);
if (BufferLen >= 2) Buffer[0] = Buffer[1] = 0;
return CR_SUCCESS; return CR_SUCCESS;
} }
...@@ -305,3 +317,12 @@ CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class, ...@@ -305,3 +317,12 @@ CONFIGRET WINAPI CM_Get_Device_Interface_List_Size_ExW(PULONG len, LPGUID class,
FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine); FIXME("%p %p %s 0x%08x %p: stub\n", len, class, debugstr_w(id), flags, machine);
return CR_FAILURE; return CR_FAILURE;
} }
/***********************************************************************
* CM_Enumerate_Classes (SETUPAPI.@)
*/
CONFIGRET WINAPI CM_Enumerate_Classes(ULONG index, LPGUID class, ULONG flags)
{
FIXME("%u %p 0x%08x: stub\n", index, class, flags);
return CR_NO_SUCH_VALUE;
}
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