Issue about CAccessToken::CreateProcessAsUser()??
-
Tuesday, March 06, 2012 9:40 AM
Hi,
I use CAccessToken::CreateProcessAsUser() to launch window. For this i am taking
STARTUPINFO si = {0};
si.cb = sizeof(si);
si.lpDesktop = &wstrDesktopName[0]; // I take desktop name from HKLM registry
si.lpTitle = NULL;
si.dwFlags = 0;
si.cbReserved2 = 0;
si.lpReserved = NULL;
si.lpReserved2 = NULL;but my window launch behind another window, not on top of other windows, which is different from regular behavior of other windows.
Please give suggestion to launch window on top most of other windows.
Thanks,
Goku
All Replies
-
Tuesday, March 06, 2012 12:45 PM
In STARTUPINFO structure , there are plenty others parameters to fill:
http://msdn.microsoft.com/fr-fr/library/ms686331.aspx
Perhaps this lines are usefull:
si.dwFlags=STARTF_USESHOWWINDOW;
si.wShowWindow=SW_SHOW;
Delphine GARRO
- Edited by GARRO Delphine Tuesday, March 06, 2012 12:50 PM
-
Thursday, March 08, 2012 9:10 AM
Hi,
I have done with the following , but it doesn't affect the situation, still problem persists.
si.dwFlags=STARTF_USESHOWWINDOW;
si.wShowWindow=SW_SHOW;
Thanks,
Amol
-
Monday, March 12, 2012 10:02 AM
Hi,
I face this problem only when, i launched window using shortcut.. for others like. launching window from startmenu, quick launch , works fine..
Thanks,
Amol

