From 4115598d5c13dfcc1421317d9d9b34e21990aa13 Mon Sep 17 00:00:00 2001 From: Juan Lang Date: Wed, 7 Nov 2007 10:38:16 -0800 Subject: [PATCH] setupapi: Add stubs for CM_Get_Device_IDA and CM_Get_Device_ID_Size. --- dlls/setupapi/setupapi.spec | 4 ++-- dlls/setupapi/stubs.c | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec index 328a23ec92b..ab62b6d22c0 100644 --- a/dlls/setupapi/setupapi.spec +++ b/dlls/setupapi/setupapi.spec @@ -71,7 +71,7 @@ @ stub CM_Get_DevNode_Registry_Property_ExW @ stub CM_Get_DevNode_Status @ stub CM_Get_DevNode_Status_Ex -@ stub CM_Get_Device_IDA +@ stdcall CM_Get_Device_IDA(ptr ptr long long) @ stub CM_Get_Device_IDW @ stub CM_Get_Device_ID_ExA @ stub CM_Get_Device_ID_ExW @@ -83,7 +83,7 @@ @ stub CM_Get_Device_ID_List_SizeW @ stub CM_Get_Device_ID_List_Size_ExA @ stub CM_Get_Device_ID_List_Size_ExW -@ stub CM_Get_Device_ID_Size +@ stdcall CM_Get_Device_ID_Size(ptr ptr long) @ stub CM_Get_Device_ID_Size_Ex @ stub CM_Get_Device_Interface_AliasA @ stub CM_Get_Device_Interface_AliasW diff --git a/dlls/setupapi/stubs.c b/dlls/setupapi/stubs.c index de1fec19f05..7d73be295b8 100644 --- a/dlls/setupapi/stubs.c +++ b/dlls/setupapi/stubs.c @@ -70,6 +70,17 @@ DWORD WINAPI CM_Disconnect_Machine(DWORD handle) } +/*********************************************************************** + * CM_Get_Device_IDA (SETUPAPI.@) + */ +DWORD WINAPI CM_Get_Device_IDA( LPVOID dnDevInst, LPSTR Buffer, + ULONG BufferLen, ULONG ulFlags) +{ + FIXME("%p, %p, %u %u\n",dnDevInst, Buffer, BufferLen, ulFlags); + Buffer[0] = 0; + return CR_SUCCESS; +} + /*********************************************************************** * CM_Get_Device_ID_ListA (SETUPAPI.@) */ @@ -82,6 +93,17 @@ DWORD WINAPI CM_Get_Device_ID_ListA( return CR_SUCCESS; } +/*********************************************************************** + * CM_Get_Device_ID_Size (SETUPAPI.@) + */ +DWORD WINAPI CM_Get_Device_ID_Size( ULONG* pulLen, LPVOID dnDevInst, + ULONG ulFlags) +{ + FIXME("%p %p %u\n",pulLen, dnDevInst, ulFlags); + *pulLen = 1; + return CR_SUCCESS; +} + /*********************************************************************** * SetupInitializeFileLogW(SETUPAPI.@) */