G
Guest
I am trying to create a process at a particular set of coordinates (for
example 1,1) but the CreateProcess api seemingly ignores the settings in the
dwX and dwY properties of the STARTUPINFO structure which I have initialized
as follows:
STARTUPINFO si;
ZeroMemory((PVOID)&si, sizeof(si));
si.cb = sizeof(si);
si.dwFlags = STARTF_USEPOSITION;
si.dwX = 1;
si.dwX = 1;
PROCESS_INFORMATION pi;
and start the application as follows:
CreateProcess(NULL, "notepad.exe", NULL, NULL, FALSE,
CREATE_DEFAULT_ERROR_MODE, NULL, NULL, &si, &pi);
The application window is not displayed at coordinates 1,1.
example 1,1) but the CreateProcess api seemingly ignores the settings in the
dwX and dwY properties of the STARTUPINFO structure which I have initialized
as follows:
STARTUPINFO si;
ZeroMemory((PVOID)&si, sizeof(si));
si.cb = sizeof(si);
si.dwFlags = STARTF_USEPOSITION;
si.dwX = 1;
si.dwX = 1;
PROCESS_INFORMATION pi;
and start the application as follows:
CreateProcess(NULL, "notepad.exe", NULL, NULL, FALSE,
CREATE_DEFAULT_ERROR_MODE, NULL, NULL, &si, &pi);
The application window is not displayed at coordinates 1,1.