G
Guest
I have createad an image of windows xpe SP1 with minlogon, and I have tried
to launch an application in a separate desktop with a simple loader that
create the new desktop and start the application with create process in this
desktop the source code is
hDesktop = CreateDesktop(
desktop,
NULL, NULL, 0,
//DESKTOP_CREATEMENU |
DESKTOP_CREATEWINDOW |
DESKTOP_SWITCHDESKTOP |
DESKTOP_READOBJECTS /*|
DESKTOP_WRITEOBJECTS |
STANDARD_RIGHTS_REQUIRED*/,
NULL );
ZeroMemory(&si, sizeof(STARTUPINFO));
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
si.cb = sizeof(STARTUPINFO);
si.lpDesktop = desktop;
//si.lpDesktop = NULL;
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_SHOWDEFAULT;
SetCurrentDir(ExtractFilePath(filename));
bStarted = CreateProcess(NULL, //lpApplicationName: PChar;
filename, //lpCommandLine: PChar;
NULL, //PSecurityAttributes,
NULL, //PSecurityAttributes
FALSE, //bInheritHandles
NORMAL_PRIORITY_CLASS,//dwCreationFlags
NULL, //lpEnvironment
NULL, //lpCurrentDirectory
&si, //TStartupInfo
&pi); //TProcessInformation
Sleep(TempoSleep);
SwitchDesktop(hDesktop);
return 0;
In Windows XP professional edition this work fine, in XPE works only if set
si.lpDesktop = NULL, this means that the application run on the default
desktop and not on other : all application that I try to run in other desktop
return the same error.
My question is : in windows XPE SP1 multiple desktop are supported ? There's
a component to add in the target designer ?
Thanks in advance for the help.
to launch an application in a separate desktop with a simple loader that
create the new desktop and start the application with create process in this
desktop the source code is
hDesktop = CreateDesktop(
desktop,
NULL, NULL, 0,
//DESKTOP_CREATEMENU |
DESKTOP_CREATEWINDOW |
DESKTOP_SWITCHDESKTOP |
DESKTOP_READOBJECTS /*|
DESKTOP_WRITEOBJECTS |
STANDARD_RIGHTS_REQUIRED*/,
NULL );
ZeroMemory(&si, sizeof(STARTUPINFO));
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));
si.cb = sizeof(STARTUPINFO);
si.lpDesktop = desktop;
//si.lpDesktop = NULL;
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_SHOWDEFAULT;
SetCurrentDir(ExtractFilePath(filename));
bStarted = CreateProcess(NULL, //lpApplicationName: PChar;
filename, //lpCommandLine: PChar;
NULL, //PSecurityAttributes,
NULL, //PSecurityAttributes
FALSE, //bInheritHandles
NORMAL_PRIORITY_CLASS,//dwCreationFlags
NULL, //lpEnvironment
NULL, //lpCurrentDirectory
&si, //TStartupInfo
&pi); //TProcessInformation
Sleep(TempoSleep);
SwitchDesktop(hDesktop);
return 0;
In Windows XP professional edition this work fine, in XPE works only if set
si.lpDesktop = NULL, this means that the application run on the default
desktop and not on other : all application that I try to run in other desktop
return the same error.
My question is : in windows XPE SP1 multiple desktop are supported ? There's
a component to add in the target designer ?
Thanks in advance for the help.