Показать полную графическую версию : ThreadId -> Handle
Andreich
05-08-2004, 18:59
Собственно сабж...
Добавлено:
Сори, это не голосование...
hasherfrog
05-08-2004, 19:03
Andreich Не обращайте внимание на голосование. Это мои грязные происки. Извините.
Добавлено:
Ах да, забыл... Ответ: OpenThread
Andreich
05-08-2004, 22:01
А я уж на свои кривые руки грешу
Не подходит:
Размещение и совместимость 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
Эхэхэ
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
А как тогда работать с приложение через thread?
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.