Issue about CAccessToken::CreateProcessAsUser()??
-
martes, 06 de marzo de 2012 9:40
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
Todas las respuestas
-
martes, 06 de marzo de 2012 12:45
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
- Editado GARRO Delphine martes, 06 de marzo de 2012 12:50
-
jueves, 08 de marzo de 2012 9:10
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
-
lunes, 12 de marzo de 2012 10:02
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

