关闭时显示消息 [英] Display Message while shutdown

查看:77
本文介绍了关闭时显示消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在系统关闭时进行了升级.
所有升级都是由服务执行的.

我想在系统关闭时向用户显示一条消息,正在升级应用程序,请稍候."

如何在Windows关闭屏幕上显示此消息.
请记住,用户会话已被注销.


我找不到以编程方式执行此操作的任何引用.
我可以在服务中获取关闭事件,但无法显示该消息.

谢谢

[edit]删除了粗体标签. rjm [/edit]

I have my application which got upgraded while system is shutting down.
All the upgradation is performed by a service.

I want to display a message to user while system is shutting down That "Application is upgrading please wait."

How can i show this message on windows shutdown screen.
Please keep in mind that user session is already being logged off.


I didn''t find any references doing this programatically.
I can get shut down event in service but not able to show the message.

Thanks

[edit]removed bold tags. rjm[/edit]

推荐答案

在WM_QUERYENDSESSION上返回TRUE
Return TRUE on WM_QUERYENDSESSION


这篇关于关闭时显示消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆