/// <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; }
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; }
/// <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; }
public static bool GetFlag(this Win32.CONTEXT ctx, NIContextFlag i) { return (ctx.EFlags & (uint)i) == (uint)i; }
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; }
public static bool GetFlag(this Win64.CONTEXT ctx, NIContextFlag i) { return((ctx.EFlags & (uint)i) == (uint)i); }
public void SetFlag(NIContextFlag i, bool value) { this.EFlags -= GetFlag(i) ? (uint)i : 0; this.EFlags ^= (value) ? (uint)i : 0; }
public bool GetFlag(NIContextFlag i) { return (this.EFlags & (uint)i) == (uint)i; }