Hi All,
I'm having trouble running an external process (CreateProcess) from a service. WaitForSingleObject fails with a timeout (WAIT_TIMEOUT).
The same code is actually called twice - so I know the code works - firstly for winrar (which works) and then for pscp (which fails with the timeout).
If I run the code directly (not from a service) it works OK.
I'm using absolute paths, so I know this isn't the issue (because sevices run from system32).
What other factor cause cause this? What else could the service be doing to cause this?
I can post the code and the full pscp command I'm using if required but this seems to be an issue with something the 'service' is doing.
Thanks for any help, rotis23