zhjie374

I create a UI appilication from services, I find there are something strange.

CreateProcess return true , but if I use getlasterror after it I get 1813.
And at this time the "session switch dialog" is not showing just on time.
It will be shown 2-3 min later. why

But some times it work correctly.

Thanks.


Re: General Windows Vista Development Issues CreateProcess return true , but getlasterror() = 1813, why

Mattias Sjogren

There's no point in calling GetLastError if a function succeeds.






Re: General Windows Vista Development Issues CreateProcess return true , but getlasterror() = 1813, why

zhjie374

Thanks for your replying.
I just want to know the reason.
Because after createprocess returned , about 3,4 min later , OS start the UI and show the session switching message.

This 3,4 min means what

Thanks