Re[4]: Поиск окон
От: Pavel Dvorkin Россия  
Дата: 24.12.03 12:53
Оценка:
Привет!

maximilian wrote:

> проверку выполнять можно в обработчике таймера, например.


Ну либо таймер, либо поток — это уж дело вкуса.
>
> сорри, подход не рабочий, в hProcess возвращается NULL. Связано, видимо, с тем, что страница открывается в существующем окне.

Вполне возможно и все же проверь fMask.

hProcess

Handle to the newly started application. This member is set on return
and is always NULL unless fMask is set to SEE_MASK_NOCLOSEPROCESS. Even
if fMask is set to SEE_MASK_NOCLOSEPROCESS, hProcess will be NULL if no
process was launched. For example, if a document to be launched is a URL
and an instance of Microsoft Internet Explorer is already running, it
will display the document. No new process is launched, and hProcess will
be NULL.

Note ShellExecuteEx does not always return an hProcess, even if a
process is launched as the result of the call. For example, an hProcess
does not return when you use SEE_MASK_INVOKEIDLIST to invoke
IContextMenu.


Впрочем, как я уже писал, сама задача некорректно поставлена.

--
С наилучшими пожеланиями
Дворкин Павел
Posted via RSDN NNTP Server 1.7 "Bedlam"
With best regards
Pavel Dvorkin
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.