S
Steve Wagner
Dear Community,
Well, so I'm learning...I have a normal dialog application that I want to
launch automatically after computer bootup, then keep it running in case it
crashes. Sorry, the op-sys has challenges so I haven't used the registry to
auto-launch it.
I wrote a service that uses CreateProcess(), which of course launches our
app. We then poll the app for being alive with WaitForSingleObject(), give
it a second's worth, and hope the results is a timeout. If not, we restart
the app. It works great, however one bummer. No dialog.
Fine, the service utility has its own console or not, but launching a dialog
from the service doesn't work. So how do I get it to show?
Maybe there's a better way. Your expertise would be greatly appreciated!
Steve
Well, so I'm learning...I have a normal dialog application that I want to
launch automatically after computer bootup, then keep it running in case it
crashes. Sorry, the op-sys has challenges so I haven't used the registry to
auto-launch it.
I wrote a service that uses CreateProcess(), which of course launches our
app. We then poll the app for being alive with WaitForSingleObject(), give
it a second's worth, and hope the results is a timeout. If not, we restart
the app. It works great, however one bummer. No dialog.
Fine, the service utility has its own console or not, but launching a dialog
from the service doesn't work. So how do I get it to show?
Maybe there's a better way. Your expertise would be greatly appreciated!
Steve