예제 #1
0
 public unsafe void SetBlockSendInputResets(bool simulatedInputBlocked, SystemParameterOptions options = 0)
 {
     if (!WindowMethods.Imports.SystemParametersInfoW(SystemParameterType.SPI_SETBLOCKSENDINPUTRESETS, (BOOL)simulatedInputBlocked, null, 0))
     {
         throw Errors.GetIoExceptionForLastError();
     }
 }
예제 #2
0
 public unsafe void SetBeep(bool beeperOn, SystemParameterOptions options = 0)
 {
     if (!WindowMethods.Imports.SystemParametersInfoW(SystemParameterType.SPI_SETBEEP, (BOOL)beeperOn, null, 0))
     {
         throw Errors.GetIoExceptionForLastError();
     }
 }
예제 #3
0
 public unsafe void SetBlockSendInputResets(bool simulatedInputBlocked, SystemParameterOptions options = 0)
 => Error.ThrowLastErrorIfFalse(
     Imports.SystemParametersInfoW(
         SystemParameterType.SPI_SETBLOCKSENDINPUTRESETS,
         (IntBoolean)simulatedInputBlocked,
         null,
         options));
예제 #4
0
 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);
예제 #6
0
 public unsafe void SetBeep(bool beeperOn, SystemParameterOptions options = 0)
 => Error.ThrowLastErrorIfFalse(
     Imports.SystemParametersInfoW(SystemParameterType.SPI_SETBEEP, (IntBoolean)beeperOn, null, options));