Add AppDefaults app selection to control panel
[wine/gsoc-2012-control.git] / dlls / clusapi / clusapi.c
blobf782d43708bb8dd107dffdf5789d5e7e4398d631
1 /*
2 * clusapi main
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 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "clusapi.h"
26 #include "wine/debug.h"
28 WINE_DEFAULT_DEBUG_CHANNEL(clusapi);
30 /***********************************************************************
31 * GetNodeClusterState (CLUSAPI.@)
33 * PARAMS
34 * lpszNodeName [I] Optional Pointer to a NULL terminated unicode string
35 * pdwClusterState [O] Current state of the cluster
36 * 0x00 - Cluster not installed.
37 * 0x01 - Cluster not configured.
38 * 0x03 - Cluster not running.
39 * 0x13 - Cluster is running.
41 DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, LPDWORD pdwClusterState)
43 FIXME("(%s,%p) stub!\n",debugstr_w(lpszNodeName),pdwClusterState);
45 *pdwClusterState = 0;
47 return ERROR_SUCCESS;
50 /***********************************************************************
51 * OpenCluster (CLUSAPI.@)
54 HCLUSTER WINAPI OpenCluster(LPCWSTR lpszClusterName)
56 FIXME("(%s) stub!\n", debugstr_w(lpszClusterName));
58 return (HCLUSTER)0xdeadbeef;
61 /***********************************************************************
62 * CloseCluster (CLUSAPI.@)
65 BOOL WINAPI CloseCluster(HCLUSTER hCluster)
67 FIXME("(%p) stub!\n", hCluster);
69 return TRUE;
72 /***********************************************************************
73 * ClusterOpenEnum (CLUSAPI.@)
76 HCLUSENUM WINAPI ClusterOpenEnum(HCLUSTER hCluster, DWORD dwType)
78 FIXME("(%p, %u) stub!\n", hCluster,dwType);
80 return (HCLUSENUM)0xdeadbeef;
83 /***********************************************************************
84 * ClusterCloseEnum (CLUSAPI.@)
87 DWORD WINAPI ClusterCloseEnum(HCLUSENUM hEnum)
89 FIXME("(%p) stub!\n", hEnum);
91 return ERROR_SUCCESS;
94 /***********************************************************************
95 * ClusterEnum (CLUSAPI.@)
98 DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWSTR lpszName, LPDWORD lpcchName)
100 FIXME("(%p, %u, %p, %p, %u) stub!\n", hEnum, dwIndex, lpdwType, lpszName, *lpcchName);
102 return ERROR_NO_MORE_ITEMS;
105 /***********************************************************************
106 * DllMain (CLUSAPI.@)
109 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
111 switch(fdwReason)
113 case DLL_WINE_PREATTACH:
114 return FALSE; /* prefer native version */
115 case DLL_PROCESS_ATTACH:
116 DisableThreadLibraryCalls( hinstDLL );
117 break;
119 return TRUE;