Exemplo n.º 1
0
        // 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);
        }
Exemplo n.º 2
0
        // 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);
        }
Exemplo n.º 3
0
 private static extern AmClusterRegkeyHandle GetClusterKeyInternal(AmClusterHandle clusterHandle, RegSAM samDesired);
Exemplo n.º 4
0
 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);
Exemplo n.º 5
0
 internal static extern AmClusterNotifyHandle CreateClusterNotifyPort([In] AmClusterNotifyHandle hChange, [In] AmClusterHandle hCluster, [In] ClusterNotifyFlags dwFilter, [In] IntPtr dwNotifyKey);
Exemplo n.º 6
0
 internal static extern AmClusterNetInterfaceHandle OpenClusterNetInterface([In] AmClusterHandle hCluster, [In] string networkName);
Exemplo n.º 7
0
 internal static extern AmClusEnumHandle ClusterOpenEnum([In] AmClusterHandle hCluster, [In] AmClusterEnum dwType);
Exemplo n.º 8
0
 internal static extern AmClusterNodeHandle OpenClusterNode([In] AmClusterHandle hCluster, [In] string nodeName);
Exemplo n.º 9
0
 internal static extern AmClusterNodeHandle AddClusterNode([In] AmClusterHandle hCluster, [In] string lpszNodeName, [In][Optional] ClusapiMethods.PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, [In][Optional] IntPtr pvCallbackArg);
Exemplo n.º 10
0
 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);
Exemplo n.º 11
0
 internal static extern AmClusterGroupHandle OpenClusterGroup([In] AmClusterHandle hCluster, [In] string groupName);
Exemplo n.º 12
0
 internal static extern AmClusterResourceHandle OpenClusterResource([In] AmClusterHandle hCluster, [In] string resourceName);
Exemplo n.º 13
0
 internal static extern uint GetClusterInformation([In] AmClusterHandle hCluster, [MarshalAs(UnmanagedType.LPWStr)][Out] StringBuilder clusterName, ref int clusterNameLength, IntPtr clusterInformation);
Exemplo n.º 14
0
 internal static extern uint DestroyCluster([In] AmClusterHandle hCluster, [In][Optional] ClusapiMethods.PCLUSTER_SETUP_PROGRESS_CALLBACK pfnProgressCallback, [In][Optional] IntPtr pvCallbackArg, [In] uint fdeleteVirtualComputerObjects);
Exemplo n.º 15
0
 internal static extern uint DestroyCluster([In] AmClusterHandle hCluster, [In][Optional] IntPtr pfnProgressCallback, [In][Optional] IntPtr pvCallbackArg, [In] uint fdeleteVirtualComputerObjects);
Exemplo n.º 16
0
 internal AmClusterNotify(AmClusterHandle hCluster)
 {
     this.m_hCluster = hCluster;
     this.m_hChange  = null;
 }