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

Вниз

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;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.026 c
6-18509
AVC
2003-08-08 14:40
2003.10.06
Домен su


1-18474
Zioma
2003-09-24 11:49
2003.10.06
Report Bilder Enterprise 4


1-18327
Dark Elf
2003-09-23 19:02
2003.10.06
Свойство Options в StringGrid


1-18433
WondeRu
2003-09-25 08:57
2003.10.06
Сервис NT на Delphi


14-18534
Zhouck
2003-09-19 12:33
2003.10.06
Механизмы межпроцессорного взаимодействия( IPC)