How to implement WndProc callback method in a windows service ?
-
I have created a Windows service in VC6 and wanted to know how can I implement a WndProc to handle Windows Messages inside the same. Regards, Kushagra I hate coding but I luv to develop :)
-
I have created a Windows service in VC6 and wanted to know how can I implement a WndProc to handle Windows Messages inside the same. Regards, Kushagra I hate coding but I luv to develop :)
You want to get the message of which window(s)? i cannot understand.:confused:
Величие не Бога может быть недооценена.
-
You want to get the message of which window(s)? i cannot understand.:confused:
Величие не Бога может быть недооценена.
Standard Windows Messages like WM_COMMAND,WM_TIMER and so on
-
Standard Windows Messages like WM_COMMAND,WM_TIMER and so on
From your words, i felt that you need to get some specific messages generated by any window globally. if so then, it sound a different intention with it :-D well you have to hook WINDOWS messages globally using SetWindowHookEx with WH_CALLWNDPROC as hook id [^]
Величие не Бога может быть недооценена.
-
Standard Windows Messages like WM_COMMAND,WM_TIMER and so on
A service runs in the background, so where are these WM_COMMAND's coming from? You won;t have a menu, or a dialog box... I think you need to go back to your basics - a service communicates with other programs using various interprocess communcations. Iain.
I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]
-
A service runs in the background, so where are these WM_COMMAND's coming from? You won;t have a menu, or a dialog box... I think you need to go back to your basics - a service communicates with other programs using various interprocess communcations. Iain.
I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[^]
I know that but ... The purpose I wanted to know that is I wanted to either abort shutdown or delay the time so that I can run some cleanup scripts just before the system gets shutdown. Regrads, Kushagra