clusapi: Add stub for GetClusterInformation

André Hentschel nerv at dawncrow.de
Thu May 23 18:01:03 CDT 2013


---
 dlls/clusapi/clusapi.c    | 14 ++++++++++++++
 dlls/clusapi/clusapi.spec |  2 +-
 include/clusapi.h         | 17 +++++++++++++++++
 3 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/dlls/clusapi/clusapi.c b/dlls/clusapi/clusapi.c
index f782d43..88c6fbf 100644
--- a/dlls/clusapi/clusapi.c
+++ b/dlls/clusapi/clusapi.c
@@ -28,6 +28,20 @@
 WINE_DEFAULT_DEBUG_CHANNEL(clusapi);
 
 /***********************************************************************
+ *             GetClusterInformation   (CLUSAPI.@)
+ *
+ */
+DWORD WINAPI GetClusterInformation(HCLUSTER hCluster, LPWSTR lpszClusterName,
+                                   LPDWORD lpcchClusterName, LPCLUSTERVERSIONINFO lpClusterInfo)
+{
+    FIXME("(%p, %p, %p, %p) stub!\n", hCluster, lpszClusterName, lpcchClusterName, lpClusterInfo);
+
+    *lpcchClusterName = 0;
+
+    return ERROR_SUCCESS;
+}
+
+/***********************************************************************
  *             GetNodeClusterState   (CLUSAPI.@)
  *
  * PARAMS
diff --git a/dlls/clusapi/clusapi.spec b/dlls/clusapi/clusapi.spec
index 9c6abe2..01d3329 100644
--- a/dlls/clusapi/clusapi.spec
+++ b/dlls/clusapi/clusapi.spec
@@ -70,7 +70,7 @@
 @ stub GetClusterFromResource
 @ stub GetClusterGroupKey
 @ stub GetClusterGroupState
-@ stub GetClusterInformation
+@ stdcall GetClusterInformation(ptr ptr ptr ptr)
 @ stub GetClusterKey
 @ stub GetClusterNetInterface
 @ stub GetClusterNetInterfaceKey
diff --git a/include/clusapi.h b/include/clusapi.h
index 7e04964..4ab07cc 100644
--- a/include/clusapi.h
+++ b/include/clusapi.h
@@ -26,7 +26,24 @@ extern "C" {
 typedef struct _HCLUSTER *HCLUSTER;
 typedef struct _HCLUSENUM *HCLUSENUM;
 
+
+typedef struct _CLUSTERVERSIONINFO
+{
+    DWORD   dwVersionInfoSize;
+    WORD    MajorVersion;
+    WORD    MinorVersion;
+    WORD    BuildNumber;
+    WCHAR   szVendorId[64];
+    WCHAR   szCSDVersion[64];
+    DWORD   dwClusterHighestVersion;
+    DWORD   dwClusterLowestVersion;
+    DWORD   dwFlags;
+    DWORD   dwReserved;
+} CLUSTERVERSIONINFO, *LPCLUSTERVERSIONINFO;
+
 BOOL WINAPI CloseCluster(HCLUSTER hCluster);
+DWORD WINAPI GetClusterInformation(HCLUSTER hCluster, LPWSTR lpszClusterName,
+                                   LPDWORD lpcchClusterName, LPCLUSTERVERSIONINFO lpClusterInfo);
 DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, LPDWORD pdwClusterState);
 HCLUSTER WINAPI OpenCluster(LPCWSTR lpszClusterName);
 HCLUSENUM WINAPI ClusterOpenEnum(HCLUSTER hCluster, DWORD dwType);
-- 
1.8.1.2



More information about the wine-patches mailing list