![]() |
Re: Aus der DLL heraus das Handle der Hostanwendung ermittel
Hallo,
ggf. löst folgendes das Problem:
Code:
Grußfunction EnumThreadWndProc(wnd: HWND; ResultWnd: PInteger): Boolean; stdcall; begin ResultWnd^ := wnd; Result := False; end; function GetThreadMainWindow(ThreadId: DWORD): HWND; begin Result := 0; EnumThreadWindows(ThreadId, @EnumThreadWndProc, Integer(@Result)); end; handle := GetThreadMainWindow(GetCurrentThreadId()); Martin |
Alle Zeitangaben in WEZ +1. Es ist jetzt 18:06 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz