Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Программирование и базы данных (http://forum.oszone.net/forumdisplay.php?f=21)
-   -   ThreadId -> Handle (http://forum.oszone.net/showthread.php?t=29539)

Andreich 05-08-2004 18:59 204455

Собственно сабж...

Добавлено:

Сори, это не голосование...

hasherfrog 05-08-2004 19:03 204456

Andreich Не обращайте внимание на голосование. Это мои грязные происки. Извините.


Добавлено:

Ах да, забыл... Ответ: OpenThread

Andreich 05-08-2004 22:01 204457

А я уж на свои кривые руки грешу
Не подходит:
Цитата:

Размещение и совместимость OpenThread
Windows. NET Server-Да
Windows XP-Да
Windows 2000-Да
Windows NT-Нет
Windows Me-Да
Windows 98-Нет
Windows 95-Нет
Вобщем проблема такая: обрабатывая сообщение WM_ACTIVATEAPP в lParam мы имеем ThreadId, а нужен хендл.

hasherfrog 06-08-2004 09:24 204458

Эхэхэ
Цитата:

Цитата ms-help://MS.PSDK.1033/dllproc/base/thread_handles_and_identifiers.htm
Windows NT 4.0 and earlier, Windows Me/98/95:  There is no way to get the thread handle from the thread identifier. If the handles were made available this way, the owning process could fail because another process unexpectedly performed an operation on one of its threads, such as suspending it, resuming it, adjusting its priority, or terminating it. Instead, you must request the handle from the thread creator or the thread itself.


Andreich 06-08-2004 14:31 204459

А как тогда работать с приложение через thread?


Время: 01:05.

Время: 01:05.
© OSzone.net 2001-