Windows Service
-
I am a total stranger to windows service development. I needed to understand the limitations . 1. Is it possible to have MFC support in Service code? 2. Can I create a hidden window in a Service ? My basic requirement is to intercept WM_DEVICE_CHANGE notifications to process this message.
Engineering is the effort !
-
I am a total stranger to windows service development. I needed to understand the limitations . 1. Is it possible to have MFC support in Service code? 2. Can I create a hidden window in a Service ? My basic requirement is to intercept WM_DEVICE_CHANGE notifications to process this message.
Engineering is the effort !
-
I am a total stranger to windows service development. I needed to understand the limitations . 1. Is it possible to have MFC support in Service code? 2. Can I create a hidden window in a Service ? My basic requirement is to intercept WM_DEVICE_CHANGE notifications to process this message.
Engineering is the effort !
RegisterDeviceNotification may be what you are looking for if developing a service to monitor a specific device. http://msdn2.microsoft.com/en-us/library/aa363431.aspx[^] Not sure if you are the author of the device driver but perhaps this document will help: http://www.microsoft.com/whdc/driver/kernel/KM-UMGuide.mspx[^] It describes WM_DEVICE_CHANGE notifications and other techniques of device change notification. Best Wishes, -David Delaune
-
Yes, you can (1 and 2), you must set the service to be able to interact with the desktop. Moreover you can use XYNTService (you can easily find it here) in order to use any app as a service. Hope this helps.
No need to interact with the desktop for hidden windows. That's only if you want a user to see the windows, which is really frowned upon from services going forward with Vista+. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: