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