public unsafe bool GetBeep() { IntBoolean beeperOn = default; Error.ThrowLastErrorIfFalse( Imports.SystemParametersInfoW(SystemParameterType.SPI_GETBEEP, 0, &beeperOn, 0)); return(beeperOn); }
public unsafe bool GetBlockSendInputResets() { IntBoolean simulatedInputBlocked = default; Error.ThrowLastErrorIfFalse( Imports.SystemParametersInfoW( SystemParameterType.SPI_GETBLOCKSENDINPUTRESETS, 0, &simulatedInputBlocked, 0)); return(simulatedInputBlocked); }
private static void DisplayTime(DeviceContext hdc, IntBoolean f24Hour, IntBoolean fSuppress) { SystemTime st = SystemInformation.GetLocalTime(); if (f24Hour) { DisplayTwoDigits(hdc, st.Hour, fSuppress); } else { DisplayTwoDigits(hdc, (st.Hour % 12) != 0 ? st.Hour : 12, fSuppress); } DisplayColon(hdc); DisplayTwoDigits(hdc, st.Minute, false); DisplayColon(hdc); DisplayTwoDigits(hdc, st.Second, false); }
public void BOOLConversion() { IntBoolean B = true; (B == true).Should().BeTrue("Comparison of TRUE with true is true"); (B == false).Should().BeFalse("Comparison of TRUE with false is false"); B.IsTrue.Should().BeTrue("IsTrue should be true when true"); B.IsFalse.Should().BeFalse("IsFalse should be false when true"); bool b = B; b.Should().BeTrue("assignment is true"); b = false; B = b; (B == true).Should().BeFalse("Comparison of FALSE with true is false"); (B == false).Should().BeTrue("Comparison of FALSE with false is true"); B.IsTrue.Should().BeFalse("IsTrue should be false when false"); B.IsFalse.Should().BeTrue("IsFalse should be true when False"); }
public static unsafe extern IntBoolean PrivilegeCheck( AccessToken ClientToken, PrivilegeSet *RequiredPrivileges, out IntBoolean pfResult);