Implement CM_Free_Log_Conf_Handle.
authorEric Kohl <eric.kohl@reactos.org>
Sat, 8 Jul 2006 22:15:16 +0000 (22:15 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 8 Jul 2006 22:15:16 +0000 (22:15 +0000)
svn path=/trunk/; revision=22956

reactos/dll/win32/cfgmgr32/cfgmgr32.def
reactos/dll/win32/setupapi/cfgmgr.c
reactos/dll/win32/setupapi/setupapi.spec
reactos/include/reactos/wine/cfgmgr32.h

index dbd23bf..a3bd0fe 100644 (file)
@@ -64,7 +64,7 @@ CM_Enumerate_Enumerators_ExW@20=SETUPAPI.CM_Enumerate_Enumerators_ExW
 ;CM_First_Range\r
 ;CM_Free_Log_Conf\r
 ;CM_Free_Log_Conf_Ex\r
-;CM_Free_Log_Conf_Handle\r
+CM_Free_Log_Conf_Handle@4=SETUPAPI.CM_Free_Log_Conf_Handle\r
 ;CM_Free_Range_List\r
 ;CM_Free_Res_Des\r
 ;CM_Free_Res_Des_Ex\r
index 45d3c47..f4e2f05 100644 (file)
@@ -918,6 +918,26 @@ CONFIGRET WINAPI CM_Enumerate_Enumerators_ExW(
 }
 
 
+/***********************************************************************
+ * CM_Free_Log_Conf_Handle [SETUPAPI.@]
+ */
+CONFIGRET WINAPI CM_Free_Log_Conf_Handle(
+    LOG_CONF lcLogConf)
+{
+    PLOG_CONF_INFO pLogConfInfo;
+
+    TRACE("%lx\n", lcLogConf);
+
+    pLogConfInfo = (PLOG_CONF_INFO)lcLogConf;
+    if (pLogConfInfo == NULL || pLogConfInfo->ulMagic != LOG_CONF_MAGIC)
+        return CR_INVALID_LOG_CONF;
+
+    HeapFree(GetProcessHeap(), 0, pLogConfInfo);
+
+    return CR_SUCCESS;
+}
+
+
 /***********************************************************************
  * CM_Get_Child [SETUPAPI.@]
  */
index 829364e..639089b 100644 (file)
@@ -48,7 +48,7 @@
 @ stub CM_First_Range
 @ stub CM_Free_Log_Conf
 @ stub CM_Free_Log_Conf_Ex
-@ stub CM_Free_Log_Conf_Handle
+@ stdcall CM_Free_Log_Conf_Handle(ptr)
 @ stub CM_Free_Range_List
 @ stub CM_Free_Res_Des
 @ stub CM_Free_Res_Des_Ex
index 507356e..94113c9 100644 (file)
@@ -50,6 +50,7 @@ DECL_WINELIB_CFGMGR32_TYPE_AW(DEVINSTID)
 #define CR_INVALID_FLAG         0x00000004
 #define CR_INVALID_DEVNODE      0x00000005
 #define CR_INVALID_DEVINST      CR_INVALID_DEVNODE
+#define CR_INVALID_LOG_CONF     0x00000007
 #define CR_NO_SUCH_DEVNODE      0x0000000D
 #define CR_NO_SUCH_DEVINST      CR_NO_SUCH_DEVNODE
 #define CR_FAILURE              0x00000013
@@ -249,6 +250,7 @@ CONFIGRET WINAPI CM_Enumerate_EnumeratorsW( ULONG, PWCHAR, PULONG, ULONG );
 CONFIGRET WINAPI CM_Enumerate_Enumerators_ExA( ULONG, PCHAR, PULONG, ULONG, HMACHINE );
 CONFIGRET WINAPI CM_Enumerate_Enumerators_ExW( ULONG, PWCHAR, PULONG, ULONG, HMACHINE );
 #define     CM_Enumerate_Enumerators_Ex WINELIB_NAME_AW(CM_Enumerate_Enumerators_Ex)
+CONFIGRET WINAPI CM_Free_Log_Conf_Handle( LOG_CONF );
 CONFIGRET WINAPI CM_Get_Child( PDEVINST, DEVINST, ULONG );
 CONFIGRET WINAPI CM_Get_Child_Ex( PDEVINST, DEVINST, ULONG, HMACHINE );
 CONFIGRET WINAPI CM_Get_Class_Key_NameA( LPGUID, LPSTR, PULONG, ULONG );