开发者

Create dialog in windows services at vista+ system

开发者 https://www.devze.com 2023-04-12 04:48 出处:网络
I useCreateDialogParam to create a dialog in my se开发者_开发百科rvice, it can run normally in XP system.But when I put it into Vista or Win7, it doesn\'t work. I want to know why or what else APIs I

I use CreateDialogParam to create a dialog in my se开发者_开发百科rvice, it can run normally in XP system.But when I put it into Vista or Win7, it doesn't work. I want to know why or what else APIs I can use?


With session 0 isolation introduced in Vista, services cannot show UI since they run in a separate, non-interactive session. You need to run a standard app on the interactive desktop and use an IPC mechanism to communicate with the service in order to show UI on behalf of the service.


Read Microsoft's documentation about the changes made to services in Vista.

http://msdn.microsoft.com/en-us/library/ms683502.aspx

http://msdn.microsoft.com/en-us/library/aa480152.aspx#appcomp_topic12

http://msdn.microsoft.com/en-us/windows/hardware/gg463353.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消