F
Frank Rizzo
I have the following situation:
1. Application X1 runs under a regular user account (this user is also
the currently logged on user).
2. Application X1 kicks off Application X2 using an Administrator
account and then quits itself.
3. Application X2 does a couple of things, then restarts Application X1
using the regular User account, then Application X2 quits itself.
4. Application X1 then needs to log off the system. It calls calls Win
API calls to enable log-off priviliges, then it calls ExitWindowsEx.
The api function kills the running app (e.g. X1), but the log-off itself
never happens.
The log-off works perfectly fine from the application running under the
regular user account, if it is not kicked off by an application running
under another account.
What am I missing here to make the log-off work?
Regards
1. Application X1 runs under a regular user account (this user is also
the currently logged on user).
2. Application X1 kicks off Application X2 using an Administrator
account and then quits itself.
3. Application X2 does a couple of things, then restarts Application X1
using the regular User account, then Application X2 quits itself.
4. Application X1 then needs to log off the system. It calls calls Win
API calls to enable log-off priviliges, then it calls ExitWindowsEx.
The api function kills the running app (e.g. X1), but the log-off itself
never happens.
The log-off works perfectly fine from the application running under the
regular user account, if it is not kicked off by an application running
under another account.
What am I missing here to make the log-off work?
Regards