- Sync clusapi with Wine head
authorDmitry Chapyshev <dmitry@reactos.org>
Sun, 11 Jan 2009 18:54:21 +0000 (18:54 +0000)
committerDmitry Chapyshev <dmitry@reactos.org>
Sun, 11 Jan 2009 18:54:21 +0000 (18:54 +0000)
svn path=/trunk/; revision=38702

reactos/dll/win32/clusapi/clusapi.c
reactos/dll/win32/clusapi/clusapi.spec

index 734676c..243c979 100644 (file)
@@ -47,6 +47,60 @@ DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, LPDWORD pdwClusterState)
     return ERROR_SUCCESS;
 }
 
+/***********************************************************************
+ *             OpenCluster   (CLUSAPI.@)
+ *
+ */
+HCLUSTER WINAPI OpenCluster(LPCWSTR lpszClusterName)
+{
+    FIXME("(%s) stub!\n", debugstr_w(lpszClusterName));
+
+    return (HCLUSTER)0xdeadbeef;
+}
+
+/***********************************************************************
+ *             CloseCluster   (CLUSAPI.@)
+ *
+ */
+BOOL WINAPI CloseCluster(HCLUSTER hCluster)
+{
+    FIXME("(%p) stub!\n", hCluster);
+
+    return TRUE;
+}
+
+/***********************************************************************
+ *             ClusterOpenEnum   (CLUSAPI.@)
+ *
+ */
+HCLUSENUM WINAPI ClusterOpenEnum(HCLUSTER hCluster, DWORD dwType)
+{
+    FIXME("(%p, %u) stub!\n", hCluster,dwType);
+
+    return (HCLUSENUM)0xdeadbeef;
+}
+
+/***********************************************************************
+ *             ClusterCloseEnum   (CLUSAPI.@)
+ *
+ */
+DWORD WINAPI ClusterCloseEnum(HCLUSENUM hEnum)
+{
+    FIXME("(%p) stub!\n", hEnum);
+
+    return ERROR_SUCCESS;
+}
+
+/***********************************************************************
+ *             ClusterEnum   (CLUSAPI.@)
+ *
+ */
+DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWSTR lpszName, LPDWORD lpcchName)
+{
+    FIXME("(%p, %u, %u, %s, %u) stub!\n", hEnum, dwIndex, *lpdwType, debugstr_w(lpszName), *lpcchName);
+
+    return ERROR_NO_MORE_ITEMS;
+}
 
 /***********************************************************************
  *             DllMain   (CLUSAPI.@)
index 6972f9b..5ad0b2e 100644 (file)
@@ -3,16 +3,16 @@
 @ stub BackupClusterDatabase
 @ stub CanResourceBeDependent
 @ stub ChangeClusterResourceGroup
-@ stub CloseCluster
+@ stdcall CloseCluster(ptr)
 @ stub CloseClusterGroup
 @ stub CloseClusterNetInterface
 @ stub CloseClusterNetwork
 @ stub CloseClusterNode
 @ stub CloseClusterNotifyPort
 @ stub CloseClusterResource
-@ stub ClusterCloseEnum
+@ stdcall ClusterCloseEnum(ptr)
 @ stub ClusterControl
-@ stub ClusterEnum
+@ stdcall ClusterEnum(ptr long ptr wstr ptr)
 @ stub ClusterGetEnumCount
 @ stub ClusterGroupCloseEnum
 @ stub ClusterGroupControl
@@ -30,7 +30,7 @@
 @ stub ClusterNodeEnum
 @ stub ClusterNodeGetEnumCount
 @ stub ClusterNodeOpenEnum
-@ stub ClusterOpenEnum
+@ stdcall ClusterOpenEnum(ptr long)
 @ stub ClusterRegCloseKey
 @ stub ClusterRegCreateKey
 @ stub ClusterRegDeleteKey
@@ -93,7 +93,7 @@
 @ stub OfflineClusterResource
 @ stub OnlineClusterGroup
 @ stub OnlineClusterResource
-@ stub OpenCluster
+@ stdcall OpenCluster(wstr)
 @ stub OpenClusterGroup
 @ stub OpenClusterNetInterface
 @ stub OpenClusterNetwork