A question about window service....
-
Hello. everyone I want to change a exe application to a window service. The application(exe) can receive some self-defined messages from other exe, so I want to receive same messages in the service too. Please teach me how to realize it? Thanks. -Freehawk
-
Hello. everyone I want to change a exe application to a window service. The application(exe) can receive some self-defined messages from other exe, so I want to receive same messages in the service too. Please teach me how to realize it? Thanks. -Freehawk
sunyw_2006 wrote:
I want to change a exe application to a window servic
See the Service(.exe) option of the ATL com Project. Knock out 't' from can't, You can if you think you can :cool:
-
Hello. everyone I want to change a exe application to a window service. The application(exe) can receive some self-defined messages from other exe, so I want to receive same messages in the service too. Please teach me how to realize it? Thanks. -Freehawk
-
Check this article: http://www.codeproject.com/system/xyntservice.asp[^]
Thanks for reply. In "xyntservice.asp" sample, it can not receive messages from other exe. I need to handle some messages from other exe. -Freehawk.
-
Thanks for reply. In "xyntservice.asp" sample, it can not receive messages from other exe. I need to handle some messages from other exe. -Freehawk.
As far as I know, xyntservice can execute Win32 GUI apps (who has got a message pump). So it wouldn't be a problem for you. Check out the ini-file sample (that starts up Notepad). If Notepad can be started under xyntservice, so will your app. And if Notepad will receive Windows messages, so will your app. Try it out!
-
As far as I know, xyntservice can execute Win32 GUI apps (who has got a message pump). So it wouldn't be a problem for you. Check out the ini-file sample (that starts up Notepad). If Notepad can be started under xyntservice, so will your app. And if Notepad will receive Windows messages, so will your app. Try it out!
Thanks. But when the current user log off, the exe is quited. 1.During logged off, can the window service call the exe? 2.Can the window service receive "log off" message? -Freehawk
-
Thanks. But when the current user log off, the exe is quited. 1.During logged off, can the window service call the exe? 2.Can the window service receive "log off" message? -Freehawk