What's a good way of connecting a Windows service with an interactive window (HWND)? -
i have 2 pieces of windows technology i'd plumb together: tsp (a tapi service provider) , api wrapped around hardware. api accepts requests synchronously returns success/fail/status result asynchronously sending messages passed-down hwnd.
as understand it, problem because tsp runs windows service, execution context doesn't have access interactive windows functions. so, i'd directly link 2 together, can't - far can tell, tsp doesn't (and indeed couldn't) have hwnd api send messages to. :-(
for me has ever programmed windows stuff on 1 side of service/interactive line @ time, of bit of head-scratcher. windows being way is, there must several sensible ways of getting messages across line, surely?
how advise me try hook these 2 things? thanks! :-)
a service can create "message window" (a window whos parent hwnd_message) , run message pump. message window has no ui , therefore doesn't interact desktop.
Comments
Post a Comment