Re: g_io_channel_win32_new_messages() & WaitForSingleObject()

2009-03-31 Thread Thomas Stover
Tor Lillqvist wrote: I have never used that service control API, no idea what it is used for even... oh, just the needlessly complex, 75 step, windows' equivalent to daemon() But if MSDN says that the returned SERVICE_STATUS_HANDLE actually is a normal HANDLE and a waitable one even, that c

Re: g_io_channel_win32_new_messages() & WaitForSingleObject()

2009-03-31 Thread Tor Lillqvist
> Anyone know if you can use a win32 message io channel on arbitrary "handles" Nope. It is just for window messages for the window indicated by the HWND parameter. > Specifically, if I had "handle" returned from RegisterServiceCtrlHandler() > (which as best as I can imagine in my linux centric re

g_io_channel_win32_new_messages() & WaitForSingleObject()

2009-03-31 Thread Thomas Stover
Anyone know if you can use a win32 message io channel on arbitrary "handles" or just gdi windows or whatever the intended use of that is? I openly admit a don't "get" windows at all, so this maybe just really out there. Specifically, if I had "handle" returned from RegisterServiceCtrlHandler()