Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenclusapi.c
Go to the documentation of this file.
00001 /* 00002 * clusapi main 00003 * 00004 * Copyright 2006 Benjamin Arai (Google) 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 */ 00020 00021 #include <stdarg.h> 00022 00023 #include "windef.h" 00024 #include "winbase.h" 00025 #include "clusapi.h" 00026 #include "wine/debug.h" 00027 00028 WINE_DEFAULT_DEBUG_CHANNEL(clusapi); 00029 00030 /*********************************************************************** 00031 * GetNodeClusterState (CLUSAPI.@) 00032 * 00033 * PARAMS 00034 * lpszNodeName [I] Optional Pointer to a NULL terminated unicode string 00035 * pdwClusterState [O] Current state of the cluster 00036 * 0x00 - Cluster not installed. 00037 * 0x01 - Cluster not configured. 00038 * 0x03 - Cluster not running. 00039 * 0x13 - Cluster is running. 00040 */ 00041 DWORD WINAPI GetNodeClusterState(LPCWSTR lpszNodeName, LPDWORD pdwClusterState) 00042 { 00043 FIXME("(%s,%p) stub!\n",debugstr_w(lpszNodeName),pdwClusterState); 00044 00045 *pdwClusterState = 0; 00046 00047 return ERROR_SUCCESS; 00048 } 00049 00050 /*********************************************************************** 00051 * OpenCluster (CLUSAPI.@) 00052 * 00053 */ 00054 HCLUSTER WINAPI OpenCluster(LPCWSTR lpszClusterName) 00055 { 00056 FIXME("(%s) stub!\n", debugstr_w(lpszClusterName)); 00057 00058 return (HCLUSTER)0xdeadbeef; 00059 } 00060 00061 /*********************************************************************** 00062 * CloseCluster (CLUSAPI.@) 00063 * 00064 */ 00065 BOOL WINAPI CloseCluster(HCLUSTER hCluster) 00066 { 00067 FIXME("(%p) stub!\n", hCluster); 00068 00069 return TRUE; 00070 } 00071 00072 /*********************************************************************** 00073 * ClusterOpenEnum (CLUSAPI.@) 00074 * 00075 */ 00076 HCLUSENUM WINAPI ClusterOpenEnum(HCLUSTER hCluster, DWORD dwType) 00077 { 00078 FIXME("(%p, %u) stub!\n", hCluster,dwType); 00079 00080 return (HCLUSENUM)0xdeadbeef; 00081 } 00082 00083 /*********************************************************************** 00084 * ClusterCloseEnum (CLUSAPI.@) 00085 * 00086 */ 00087 DWORD WINAPI ClusterCloseEnum(HCLUSENUM hEnum) 00088 { 00089 FIXME("(%p) stub!\n", hEnum); 00090 00091 return ERROR_SUCCESS; 00092 } 00093 00094 /*********************************************************************** 00095 * ClusterEnum (CLUSAPI.@) 00096 * 00097 */ 00098 DWORD WINAPI ClusterEnum(HCLUSENUM hEnum, DWORD dwIndex, LPDWORD lpdwType, LPWSTR lpszName, LPDWORD lpcchName) 00099 { 00100 FIXME("(%p, %u, %p, %p, %u) stub!\n", hEnum, dwIndex, lpdwType, lpszName, *lpcchName); 00101 00102 return ERROR_NO_MORE_ITEMS; 00103 } 00104 00105 /*********************************************************************** 00106 * DllMain (CLUSAPI.@) 00107 * 00108 */ 00109 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) 00110 { 00111 switch(fdwReason) 00112 { 00113 case DLL_WINE_PREATTACH: 00114 return FALSE; /* prefer native version */ 00115 case DLL_PROCESS_ATTACH: 00116 DisableThreadLibraryCalls( hinstDLL ); 00117 break; 00118 } 00119 return TRUE; 00120 } Generated on Wed May 23 2012 04:20:51 for ReactOS by
1.7.6.1
|