// Token: 0x060002AB RID: 683 RVA: 0x0000CC70 File Offset: 0x0000AE70 internal static AmClusterHandle OpenCluster([In] string clusterName) { AmClusterHandle handle = null; ClusApiHook.CallBackDriver(ClusApiHooks.OpenCluster, string.Format("clusterName = {0}", clusterName), delegate { int result = 0; handle = ClusapiMethods.OpenClusterInternal(clusterName); if (handle == null || handle.IsInvalid) { result = Marshal.GetLastWin32Error(); } return(result); }); return(handle); }
// Token: 0x060002ED RID: 749 RVA: 0x0000CE80 File Offset: 0x0000B080 internal static AmClusterRegkeyHandle GetClusterKey(AmClusterHandle clusterHandle, RegSAM samDesired) { AmClusterRegkeyHandle handle = null; ClusApiHook.CallBackDriver(ClusApiHooks.GetClusterKey, string.Format("clusterHandle = {0} samDesired = {1}", clusterHandle, samDesired), delegate { int result = 0; handle = ClusapiMethods.GetClusterKeyInternal(clusterHandle, samDesired); if (handle == null || handle.IsInvalid) { result = Marshal.GetLastWin32Error(); } else { handle.Name = "HKLM:\\Cluster"; } return(result); }); return(handle); }
private static extern AmClusterRegkeyHandle GetClusterKeyInternal(AmClusterHandle clusterHandle, RegSAM samDesired);
internal static extern int ClusterControl([In] AmClusterHandle hCluster, [In] IntPtr hHostNode, [In] AmClusterClusterControlCode controlCode, [In] IntPtr inBuffer, [In] uint inBufferSize, [Out] IntPtr outBuffer, [In] uint outBufferSize, out uint bytesReturned);
internal static extern AmClusterNotifyHandle CreateClusterNotifyPort([In] AmClusterNotifyHandle hChange, [In] AmClusterHandle hCluster, [In] ClusterNotifyFlags dwFilter, [In] IntPtr dwNotifyKey);
internal static extern AmClusterNetInterfaceHandle OpenClusterNetInterface([In] AmClusterHandle hCluster, [In] string networkName);
internal static extern AmClusEnumHandle ClusterOpenEnum([In] AmClusterHandle hCluster, [In] AmClusterEnum dwType);
internal static extern AmClusterNodeHandle OpenClusterNode([In] AmClusterHandle hCluster, [In] string nodeName);
internal static extern AmClusterNodeHandle AddClusterNode([In] AmClusterHandle hCluster, [In] string lpszNodeName, [In][Optional] ClusapiMethods.PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, [In][Optional] IntPtr pvCallbackArg);
internal static extern uint GetClusterQuorumResource([In] AmClusterHandle hCluster, StringBuilder lpszResourceName, [In][Out] ref uint lpcchResourceName, StringBuilder lpszDeviceName, [In][Out] ref uint lpcchDeviceName, out uint lpdwMaxQuorumLogSize);
internal static extern AmClusterGroupHandle OpenClusterGroup([In] AmClusterHandle hCluster, [In] string groupName);
internal static extern AmClusterResourceHandle OpenClusterResource([In] AmClusterHandle hCluster, [In] string resourceName);
internal static extern uint GetClusterInformation([In] AmClusterHandle hCluster, [MarshalAs(UnmanagedType.LPWStr)][Out] StringBuilder clusterName, ref int clusterNameLength, IntPtr clusterInformation);
internal static extern uint DestroyCluster([In] AmClusterHandle hCluster, [In][Optional] ClusapiMethods.PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, [In][Optional] IntPtr pvCallbackArg, [In] uint fdeleteVirtualComputerObjects);
internal static extern uint DestroyCluster([In] AmClusterHandle hCluster, [In][Optional] IntPtr pfnProgressCallback, [In][Optional] IntPtr pvCallbackArg, [In] uint fdeleteVirtualComputerObjects);
internal AmClusterNotify(AmClusterHandle hCluster) { this.m_hCluster = hCluster; this.m_hChange = null; }