public unsafe void SetBlockSendInputResets(bool simulatedInputBlocked, SystemParameterOptions options = 0) { if (!WindowMethods.Imports.SystemParametersInfoW(SystemParameterType.SPI_SETBLOCKSENDINPUTRESETS, (BOOL)simulatedInputBlocked, null, 0)) { throw Errors.GetIoExceptionForLastError(); } }
public unsafe void SetBeep(bool beeperOn, SystemParameterOptions options = 0) { if (!WindowMethods.Imports.SystemParametersInfoW(SystemParameterType.SPI_SETBEEP, (BOOL)beeperOn, null, 0)) { throw Errors.GetIoExceptionForLastError(); } }
public unsafe void SetBlockSendInputResets(bool simulatedInputBlocked, SystemParameterOptions options = 0) => Error.ThrowLastErrorIfFalse( Imports.SystemParametersInfoW( SystemParameterType.SPI_SETBLOCKSENDINPUTRESETS, (IntBoolean)simulatedInputBlocked, null, options));
public unsafe void SetBeep(bool beeperOn, SystemParameterOptions options = 0) { if (!Imports.SystemParametersInfoW(SystemParameterType.SPI_SETBEEP, (Boolean32)beeperOn, null, 0)) { throw Error.GetExceptionForLastError(); } }
public unsafe static extern bool SystemParametersInfoW( SystemParameterType uiAction, uint uiParam, void *pvParam, SystemParameterOptions fWinIni);
public unsafe void SetBeep(bool beeperOn, SystemParameterOptions options = 0) => Error.ThrowLastErrorIfFalse( Imports.SystemParametersInfoW(SystemParameterType.SPI_SETBEEP, (IntBoolean)beeperOn, null, options));