/*1* clusapi main2*3* Copyright 2006 Benjamin Arai (Google)4*5* This library is free software; you can redistribute it and/or6* modify it under the terms of the GNU Lesser General Public7* License as published by the Free Software Foundation; either8* version 2.1 of the License, or (at your option) any later version.9*10* This library is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13* Lesser General Public License for more details.14*15* You should have received a copy of the GNU Lesser General Public16* License along with this library; if not, write to the Free Software17* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA18*/1920#include <stdarg.h>2122#include "windef.h"23#include "winbase.h"24#include "clusapi.h"25#include "wine/debug.h"2627WINE_DEFAULT_DEBUG_CHANNEL(clusapi);2829/***********************************************************************30* GetClusterInformation (CLUSAPI.@)31*32*/33DWORD WINAPI GetClusterInformation(HCLUSTER hCluster, LPWSTR lpszClusterName,34LPDWORD lpcchClusterName, LPCLUSTERVERSIONINFO lpClusterInfo)35{36FIXME("(%p, %p, %p, %p) stub!\n", hCluster, lpszClusterName, lpcchClusterName, lpClusterInfo);3738*lpcchClusterName = 0;3940return ERROR_SUCCESS;41}4243/***********************************************************************44* GetNodeClusterState (CLUSAPI.@)45*46* PARAMS47* lpszNodeName [I] Optional Pointer to a NULL terminated unicode string48* pdwClusterState [O] Current state of the cluster49* 0x00 - Cluster not installed.50* 0x01 - Cluster not configured.51* 0x03 - Cluster not running.52* 0x13 - Cluster is running.53*/54DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, LPDWORD pdwClusterState)55{56FIXME("(%s,%p) stub!\n",debugstr_w(lpszNodeName),pdwClusterState);5758*pdwClusterState = 0;5960return ERROR_SUCCESS;61}6263/***********************************************************************64* OpenCluster (CLUSAPI.@)65*66*/67HCLUSTER WINAPI OpenCluster(LPCWSTR lpszClusterName)68{69FIXME("(%s) stub!\n", debugstr_w(lpszClusterName));7071return (HCLUSTER)0xdeadbeef;72}7374/***********************************************************************75* CloseCluster (CLUSAPI.@)76*77*/78BOOL WINAPI CloseCluster(HCLUSTER hCluster)79{80FIXME("(%p) stub!\n", hCluster);8182return TRUE;83}8485/***********************************************************************86* ClusterOpenEnum (CLUSAPI.@)87*88*/89HCLUSENUM WINAPI ClusterOpenEnum(HCLUSTER hCluster, DWORD dwType)90{91FIXME("(%p, %lu) stub!\n", hCluster,dwType);9293return (HCLUSENUM)0xdeadbeef;94}9596/***********************************************************************97* ClusterCloseEnum (CLUSAPI.@)98*99*/100DWORD WINAPI ClusterCloseEnum(HCLUSENUM hEnum)101{102FIXME("(%p) stub!\n", hEnum);103104return ERROR_SUCCESS;105}106107/***********************************************************************108* ClusterEnum (CLUSAPI.@)109*110*/111DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWSTR lpszName, LPDWORD lpcchName)112{113FIXME("(%p, %lu, %p, %p, %lu) stub!\n", hEnum, dwIndex, lpdwType, lpszName, *lpcchName);114115return ERROR_NO_MORE_ITEMS;116}117118119