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

Вниз

MessageBox и другие визуальные компоненты Windows в сервисах   Найти похожие ветки 

 
stkatch   (2003-07-22 10:06) [0]

Уважаемые мастера!
Не подскажите, как мне выводить сообщение на экран в сервисе (службе)? Как определить, что система загружен и можно пользоваться UI? Спасибо.


 
ZZ   (2003-07-22 10:18) [1]

По первому вопросу - посмотри параметры у MessageBox..
А по второму - не очень понятно как система может быть не загружен? :)


 
stkatch   (2003-07-22 10:22) [2]

> ZZ
На сколько я понимаю, пользоваться функциями типа MessageBox и т.п. можно тогда, когда произошел logon в систему. До этого функции пользовательского интерфейса недоступны, или я ошибаюсь?
Всегда ли я из сервиса (службы) могу вызвать тот же MessageBox или нет?


 
ZZ   (2003-07-22 12:34) [3]

сам переведешь?
MB_SERVICE_NOTIFICATION
Windows NT/2000 or later: The caller is a service notifying the user of an event. The function displays a message box on the current active desktop, even if there is no user logged on to the computer.
Terminal Services: If the calling thread has an impersonation token, the function directs the message box to the session specified in the impersonation token.

If this flag is set, the hWnd parameter must be NULL. This is so the message box can appear on a desktop other than the desktop corresponding to the hWnd.

For more information on the changes between Windows NT 3.51 and Windows NT 4.0, see Remarks.
(C) MSDN



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

Форум: "Система";
Текущий архив: 2003.10.06;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.009 c
4-18665
Delphi5.01
2003-07-31 19:09
2003.10.06
GetWindowText, GetNextWindow


1-18321
sashcan
2003-09-23 20:15
2003.10.06
реестр Windows


1-18378
RoLeX
2003-09-21 21:44
2003.10.06
Помогите чайнику с DateTimePicker


14-18635
Феликс
2003-09-17 15:19
2003.10.06
В разделе Кладовка, подраздел Компоненты также часто чистят...


1-18307
val_5
2003-09-23 23:02
2003.10.06
RegisterClass(TMyForm)





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский