Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.04.18;
Скачать: CL | DM;

Вниз

Как перерезать глотку PC Speaker   Найти похожие ветки 

 
Dark Man ©   (2004-02-16 08:47) [0]

Надо программно отключить PC Speaker


 
dr Tr0jan ©   (2004-02-16 12:13) [1]

Юзай
The SystemParametersInfo function queries or sets systemwide parameters. This function can also update the user profile while setting a parameter.

BOOL SystemParametersInfo(

   UINT uiAction, // system parameter to query or set
   UINT uiParam, // depends on action to be taken
   PVOID pvParam, // depends on action to be taken
   UINT fWinIni  // user profile update flag
  );


Parameters

uiAction

Specifies the systemwide parameter to query or set. This parameter can be one of the following values:

Value Meaning

SPI_GETBEEP Indicates whether the warning beeper is on.The pvParam parameter is a pointer to a BOOL that receives TRUE if the beeper is on, or FALSE if it is off.

SPI_SETBEEP Turns the warning beeper on or off. The uiParam parameter specifies TRUE for on, or FALSE for off.

uiParam

Depends on the system parameter being queried or set. For more information about systemwide parameters, see the uiAction parameter. If not otherwise indicated, specify zero.

pvParam

Depends on the system parameter being queried or set. For more information about systemwide parameters, see the uiAction parameter. If not otherwise indicated, specify NULL.

fWinIni

If a system parameter is being set, specifies whether the user profile is to be updated, and if so, whether the WM_SETTINGCHANGE message is to be broadcast to all top-level windows to notify them of the change. This parameter can be zero or can be one of the following values:

Value Action
SPIF_UPDATEINIFILE Writes the new system-wide parameter setting to the user profile.
SPIF_SENDCHANGE Broadcasts the WM_SETTINGCHANGE message after updating the user profile.
SPIF_SENDWININICHANGE Same as SPIF_SENDCHANGE.


Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

This function is intended for use with applications, such as the Control Panel, that allow the user to customize the Windows environment.



RTFM "Win32 Developer"s References "


 
dr Tr0jan ©   (2004-02-16 12:13) [2]

Удалено модератором
Примечание: Дубль


 
dr Tr0jan ©   (2004-02-16 12:14) [3]

Удалено модератором
Примечание: Дубль


 
Dark Man ©   (2004-02-17 05:25) [4]

Шапасибо посмотрю


 
Gregi   (2004-02-19 19:33) [5]

создаеш прогу которая выводит звук на спикер, причем мощность должна быть такая чтоб погарели провода. Так же понадобится впаять пару деталей, но поверь это того стоит!



Страницы: 1 вся ветка

Текущий архив: 2004.04.18;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.033 c
7-1076171882
nester
2004-02-07 19:38
2004.04.18
Как добавить задание в Планировщик(он же Scheduler)


6-1077106041
atruhinov
2004-02-18 15:07
2004.04.18
Прием/Передача данных через адаптер


14-1080117475
DillerXX
2004-03-24 11:37
2004.04.18
Мне интересно,


4-1076441706
Novichok
2004-02-10 22:35
2004.04.18
как запустить exe из Stream


4-1076927156
ser_sumy
2004-02-16 13:25
2004.04.18
GetAdaptersInfo-Грабли