diff --git a/dlls/cfgmgr32/cfgmgr32.spec b/dlls/cfgmgr32/cfgmgr32.spec index 0042523a1ca..6f7a87737c4 100644 --- a/dlls/cfgmgr32/cfgmgr32.spec +++ b/dlls/cfgmgr32/cfgmgr32.spec @@ -60,7 +60,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 @@ -72,7 +72,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/cfgmgr32/main.c b/dlls/cfgmgr32/main.c index 65ea58e6332..a60e79566eb 100644 --- a/dlls/cfgmgr32/main.c +++ b/dlls/cfgmgr32/main.c @@ -1,6 +1,7 @@ /* * cfgmgr32 implementation * + * Copyright 2004 Aric Stewart for CodeWeavers * Copyright 2003 Mike McCormack for CodeWeavers * * This library is free software; you can redistribute it and/or @@ -22,15 +23,12 @@ #include "windef.h" #include "winbase.h" #include "winnt.h" +#include "cfgmgr32.h" #include "wine/debug.h" WINE_DEFAULT_DEBUG_CHANNEL(cfgmgr32); -typedef DWORD CONFIGRET; - -#define CR_SUCCESS 0 - CONFIGRET WINAPI CM_Get_Device_ID_ListA( PCSTR pszFilter, PCHAR Buffer, ULONG BufferLen, ULONG ulFlags ) { @@ -38,3 +36,19 @@ CONFIGRET WINAPI CM_Get_Device_ID_ListA( memset(Buffer,0,2); return CR_SUCCESS; } + +CONFIGRET WINAPI CM_Get_Device_ID_Size( ULONG* pulLen, LPVOID dnDevInst, + ULONG ulFlags) +{ + FIXME("%p %p %lu\n",pulLen, dnDevInst, ulFlags); + *pulLen = 1; + return CR_SUCCESS; +} + +CONFIGRET WINAPI CM_Get_Device_IDA( LPVOID dnDevInst, LPSTR Buffer, + ULONG BufferLen, ULONG ulFlags) +{ + FIXME("%p, %p, %lu %lu\n",dnDevInst, Buffer, BufferLen, ulFlags); + Buffer[0] = 0; + return CR_SUCCESS; +}