4 * Copyright 2006 Benjamin Arai (Google)
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #define WIN32_NO_STATUS
28 #include <wine/debug.h>
30 WINE_DEFAULT_DEBUG_CHANNEL(clusapi
);
32 /***********************************************************************
33 * GetClusterInformation (CLUSAPI.@)
36 DWORD WINAPI
GetClusterInformation(HCLUSTER hCluster
, LPWSTR lpszClusterName
,
37 LPDWORD lpcchClusterName
, LPCLUSTERVERSIONINFO lpClusterInfo
)
39 FIXME("(%p, %p, %p, %p) stub!\n", hCluster
, lpszClusterName
, lpcchClusterName
, lpClusterInfo
);
41 *lpcchClusterName
= 0;
46 /***********************************************************************
47 * GetNodeClusterState (CLUSAPI.@)
50 * lpszNodeName [I] Optional Pointer to a NULL terminated unicode string
51 * pdwClusterState [O] Current state of the cluster
52 * 0x00 - Cluster not installed.
53 * 0x01 - Cluster not configured.
54 * 0x03 - Cluster not running.
55 * 0x13 - Cluster is running.
57 DWORD WINAPI
GetNodeClusterState(LPCWSTR lpszNodeName
, LPDWORD pdwClusterState
)
59 FIXME("(%s,%p) stub!\n",debugstr_w(lpszNodeName
),pdwClusterState
);
66 /***********************************************************************
67 * OpenCluster (CLUSAPI.@)
70 HCLUSTER WINAPI
OpenCluster(LPCWSTR lpszClusterName
)
72 FIXME("(%s) stub!\n", debugstr_w(lpszClusterName
));
74 return (HCLUSTER
)0xdeadbeef;
77 /***********************************************************************
78 * CloseCluster (CLUSAPI.@)
81 BOOL WINAPI
CloseCluster(HCLUSTER hCluster
)
83 FIXME("(%p) stub!\n", hCluster
);
88 /***********************************************************************
89 * ClusterOpenEnum (CLUSAPI.@)
92 HCLUSENUM WINAPI
ClusterOpenEnum(HCLUSTER hCluster
, DWORD dwType
)
94 FIXME("(%p, %u) stub!\n", hCluster
,dwType
);
96 return (HCLUSENUM
)0xdeadbeef;
99 /***********************************************************************
100 * ClusterCloseEnum (CLUSAPI.@)
103 DWORD WINAPI
ClusterCloseEnum(HCLUSENUM hEnum
)
105 FIXME("(%p) stub!\n", hEnum
);
107 return ERROR_SUCCESS
;
110 /***********************************************************************
111 * ClusterEnum (CLUSAPI.@)
114 DWORD WINAPI
ClusterEnum(HCLUSENUM hEnum
, DWORD dwIndex
, LPDWORD lpdwType
, LPWSTR lpszName
, LPDWORD lpcchName
)
116 FIXME("(%p, %u, %p, %p, %u) stub!\n", hEnum
, dwIndex
, lpdwType
, lpszName
, *lpcchName
);
118 return ERROR_NO_MORE_ITEMS
;
121 /***********************************************************************
122 * DllMain (CLUSAPI.@)
125 BOOL WINAPI
DllMain(HINSTANCE hinstDLL
, DWORD fdwReason
, LPVOID lpvReserved
)
129 case DLL_WINE_PREATTACH
:
130 return FALSE
; /* prefer native version */
131 case DLL_PROCESS_ATTACH
:
132 DisableThreadLibraryCalls( hinstDLL
);