Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.05.01;
Скачать: CL | DM;

Вниз

SW_HIDE   Найти похожие ветки 

 
dlf   (2003-03-04 15:22) [0]

Приветствую.
Может кто-нибудь поможет мне...
Запускаю процесс...

...
var
si:STARTUPINFO;
pi:PROCESS_INFORMATION;

...

if not CreateProcess( nil,
PChar("notepad"),//например notepad
nil,
nil,
false,
0,
nil,
nil,
si,
pi) then
begin
ShowMessage("Failed to create process!");
exit
end;


waitForSingleObject(pi.hProcess,INFINITE);

CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
____________________________
необходимо запустить его срытым.
Я пробовал si.wShowWindow:=SW_HIDE;
Но это не срабатывает:(
можт поможете, в чем тут дело?


 
Игорь Шевченко ©   (2003-03-04 16:10) [1]

StartupInfo.dwFlags

This is a bit field that determines whether certain STARTUPINFO members are used when the process creates a window. Any combination of the following values can be specified:

Value Meaning
STARTF_USESHOWWINDOW If this value is not specified, the wShowWindow member is ignored.

+ StartupInfo.cbSize


 
dlf   (2003-03-04 16:13) [2]

Спасибо!!!



Страницы: 1 вся ветка

Текущий архив: 2003.05.01;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.01 c
1-601
Алексей
2003-04-18 11:12
2003.05.01
нестандартные кнопоки в делфи


1-528
Kair
2003-04-19 23:14
2003.05.01
ListBox.Item


14-746
Agent[007]
2003-04-14 14:27
2003.05.01
Форум


14-754
Дмитрий К.К.
2003-04-14 07:34
2003.05.01
Именинники 14 апреля


3-414
yurikon
2003-04-11 14:00
2003.05.01
Св-во наследника TFrame в Object Inspector`е