clusapi: Add stub for GetClusterInformation (try2, resend).

Konrad Rzepecki hannibal at astral.lodz.pl
Fri Mar 18 05:00:51 CDT 2011


Line wrap fix, spoted by Dmitry Timoshkov.

---
 dlls/clusapi/clusapi.c    |   21 +++++++++++++++++++++
 dlls/clusapi/clusapi.spec |    2 +-
 include/clusapi.h         |   14 ++++++++++++++
 3 files changed, 36 insertions(+), 1 deletions(-)

diff --git a/dlls/clusapi/clusapi.c b/dlls/clusapi/clusapi.c
index f782d43..fcd0c10 100644
--- a/dlls/clusapi/clusapi.c
+++ b/dlls/clusapi/clusapi.c
@@ -102,6 +102,27 @@ DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWST
     return ERROR_NO_MORE_ITEMS;
 }
 
+
+/***********************************************************************
+ *             GetClusterInformation   (CLUSAPI.@)
+ *
+ */
+DWORD WINAPI GetClusterInformation(HCLUSTER hCluster, LPWSTR lpszClusterName, LPDWORD lpcchClusterName, LPCLUSTERVERSIONINFO lpClusterInfo)
+{
+    FIXME("(%p, %p, %p, %p) stub!\n", hCluster, lpszClusterName, lpcchClusterName, lpClusterInfo);
+
+    if (*lpcchClusterName == 0) {
+        *lpcchClusterName = 0;
+        return ERROR_MORE_DATA;
+    }
+
+    lpcchClusterName = 0;
+    lpszClusterName[0] = '\0';
+    lpClusterInfo = NULL;
+
+    return ERROR_SUCCESS;
+}
+
 /***********************************************************************
  *             DllMain   (CLUSAPI.@)
  *
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..a825a8b 100644
--- a/include/clusapi.h
+++ b/include/clusapi.h
@@ -26,12 +26,26 @@ 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, *PCLUSTERVERSIONINFO;
+
 BOOL WINAPI CloseCluster(HCLUSTER hCluster);
 DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, LPDWORD pdwClusterState);
 HCLUSTER WINAPI OpenCluster(LPCWSTR lpszClusterName);
 HCLUSENUM WINAPI ClusterOpenEnum(HCLUSTER hCluster, DWORD dwType);
 DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWSTR lpszName, LPDWORD lpcchName);
 DWORD WINAPI ClusterCloseEnum(HCLUSENUM hEnum);
+DWORD WINAPI GetClusterInformation(HCLUSTER hCluster, LPWSTR lpszClusterName, LPDWORD lpcchClusterName, LPCLUSTERVERSIONINFO lpClusterInfo);
 
 #ifdef __cplusplus
 }
-- 
1.7.4.1




More information about the wine-patches mailing list