|
|
|
CreateProcess
|
|||
|---|---|---|---|
|
#18+
Подскажите пожалуйста, как с помощью CreateProcess запускать консольное приложение, но не отображать его? Я делаю StartInfo.wShowWindow = SW_HIDE; Причём в StartInfo.dwFlags STARTF_USESHOWWINDOW не присутствует, а окно всё равно висит??? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.03.2004, 14:55 |
|
||
|
CreateProcess
|
|||
|---|---|---|---|
|
#18+
DWORD dwCreationFlags CREATE_NO_WINDOW Windows NT/2000: This flag is valid only when starting a console application. If set, the console application is run without a console window. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.03.2004, 15:09 |
|
||
|
CreateProcess
|
|||
|---|---|---|---|
|
#18+
if (!CreateProcess( NULL, // No module name (use command line). s, // Command line. NULL, // Process handle not inheritable. NULL, // Thread handle not inheritable. FALSE, // Set handle inheritance to FALSE. 0,// CREATE_NO_WINDOW, // No window is visible. NULL, // Use parent's environment block. NULL, // Use parent's starting directory. &si, // Pointer to STARTUPINFO structure. &pi) // Pointer to PROCESS_INFORMATION structure. ) { void *error; FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &error, 0, NULL); cout <<(char *) error << endl << flush; LocalFree(error); return; } ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 11.03.2004, 15:10 |
|
||
|
|

start [/forum/topic.php?fid=57&gotonew=1&tid=2035306]: |
0ms |
get settings: |
11ms |
get forum list: |
17ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
87ms |
get topic data: |
12ms |
get first new msg: |
8ms |
get forum data: |
4ms |
get page messages: |
46ms |
get tp. blocked users: |
2ms |
| others: | 229ms |
| total: | 424ms |

| 0 / 0 |
