コード例 #1
0
ファイル: NIDebugger.cs プロジェクト: JBTech/NIDebugger
 /// <summary>
 /// Sets the value of the requested flag.
 /// </summary>
 /// <param name="flag">The flag</param>
 /// <param name="value">What the new value of the flag should be.</param>
 /// <returns>Reference to the NIDebugger object</returns>
 public NIDebugger SetFlag(NIContextFlag flag, bool value)
 {
     Context.SetFlag(flag, value);
     return this;
 }
コード例 #2
0
ファイル: NIDebugger.cs プロジェクト: JBTech/NIDebugger
        public static void SetFlag(this Win32.CONTEXT ctx, NIContextFlag i, bool value)
        {
            ctx.EFlags -= GetFlag(ctx,i) ? (uint)i : 0;

            ctx.EFlags ^= (value) ? (uint)i : 0;
        }
コード例 #3
0
ファイル: NIDebugger.cs プロジェクト: JBTech/NIDebugger
 /// <summary>
 /// Gets the current value of the requested flag.
 /// </summary>
 /// <param name="flag">The flag.</param>
 /// <param name="value">Output variable that will contain the value of the flag.</param>
 /// <returns>Reference to the NIDebugger object</returns>
 public NIDebugger GetFlag(NIContextFlag flag, out bool value)
 {
     value = Context.GetFlag(flag);
     return this;
 }
コード例 #4
0
ファイル: NIDebugger.cs プロジェクト: JBTech/NIDebugger
 public static bool GetFlag(this Win32.CONTEXT ctx, NIContextFlag i)
 {
     return (ctx.EFlags & (uint)i) == (uint)i;
 }
コード例 #5
0
        public static void SetFlag(this Win64.CONTEXT ctx, NIContextFlag i, bool value)
        {
            ctx.EFlags -= ctx.GetFlag(i) ? (uint)i : 0;

            ctx.EFlags ^= (value) ? (uint)i : 0;
        }
コード例 #6
0
 public static bool GetFlag(this Win64.CONTEXT ctx, NIContextFlag i)
 {
     return((ctx.EFlags & (uint)i) == (uint)i);
 }
コード例 #7
0
ファイル: NIDebugger.cs プロジェクト: n00bmk/NIDebugger
        public void SetFlag(NIContextFlag i, bool value)
        {
            this.EFlags -= GetFlag(i) ? (uint)i : 0;

            this.EFlags ^= (value) ? (uint)i : 0;
        }
コード例 #8
0
ファイル: NIDebugger.cs プロジェクト: n00bmk/NIDebugger
 public bool GetFlag(NIContextFlag i)
 {
     return (this.EFlags & (uint)i) == (uint)i;
 }