Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Система";
Текущий архив: 2004.04.18;
Скачать: [xml.tar.bz2];

Вниз

Как перерезать глотку 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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.99 c
11-1062402219
savva
2003-09-01 11:43
2004.04.18
to Gandalf: А народный проект умер что ли?


1-1080803587
Dmitrij_K
2004-04-01 11:13
2004.04.18
Проблема с Word ом


8-1072544507
KrolikMaster
2003-12-27 20:01
2004.04.18
Java&Delphi


1-1080903079
ownz
2004-04-02 14:51
2004.04.18
Как можно создать библиотеку и загонять туда любые файлы


14-1080236456
Игорь Шевченко
2004-03-25 20:40
2004.04.18
Уважаемые посетители сайта,





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский