AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

DLL+HWND

Ein Thema von wolfsblut · begonnen am 17. Jun 2005 · letzter Beitrag vom 17. Jun 2005
Antwort Antwort
Benutzerbild von wolfsblut
wolfsblut

Registriert seit: 25. Okt 2004
Ort: Anrode
20 Beiträge
 
Delphi 7 Professional
 
#1

DLL+HWND

  Alt 17. Jun 2005, 12:24
Hi,

Kurze Frage. Kennt ihr eine Möglichkeit innerhalb einer DLL das Handle des aufrufenden Programms herauszubekommen???


Danke im Voraus

mfg
Michael
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.171 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: DLL+HWND

  Alt 17. Jun 2005, 12:36
GetWindowThreadProcessId
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
Benutzerbild von wolfsblut
wolfsblut

Registriert seit: 25. Okt 2004
Ort: Anrode
20 Beiträge
 
Delphi 7 Professional
 
#3

Re: DLL+HWND

  Alt 17. Jun 2005, 13:55
Hi,

Zitat von Bernhard Geyer:
GetWindowThreadProcessId
Sorry falls meine Frage eher unverständlich war.
Die OH sagt:

The GetWindowThreadProcessId function retrieves the identifier of the thread that created the specified window and, optionally, the identifier of the process that created the window. This function supersedes the GetWindowTask function.

DWORD GetWindowThreadProcessId(

HWND hWnd, // handle of window <~~ da will ich ran
LPDWORD lpdwProcessId // address of variable for process identifier
);

Parameters

hWnd

Identifies the window.

lpdwProcessId

Points to a 32-bit value that receives the process identifier. If this parameter is not NULL, GetWindowThreadProcessId copies the identifier of the process to the 32-bit value; otherwise, it does not.

Gibts sone Funktion???

mfg
Michael
  Mit Zitat antworten Zitat
Benutzerbild von Bernhard Geyer
Bernhard Geyer

Registriert seit: 13. Aug 2002
17.171 Beiträge
 
Delphi 10.4 Sydney
 
#4

Re: DLL+HWND

  Alt 17. Jun 2005, 14:14
Dann probier mal GetActiveWindow


OH: The GetActiveWindow function retrieves the window handle to the active window associated with the thread that calls the function.
Windows Vista - Eine neue Erfahrung in Fehlern.
  Mit Zitat antworten Zitat
Benutzerbild von wolfsblut
wolfsblut

Registriert seit: 25. Okt 2004
Ort: Anrode
20 Beiträge
 
Delphi 7 Professional
 
#5

Re: DLL+HWND

  Alt 17. Jun 2005, 14:51
Zitat von Bernhard Geyer:
Dann probier mal GetActiveWindow


OH: The GetActiveWindow function retrieves the window handle to the active window associated with the thread that calls the function.
Hi,

habs grad ma getested. Scheint zu funzen - genau das was ich gesucht hab ... thx tolles Forum ... schnelle kompetente und freundliche hilfe

thx

weiter so ...

mfg
Michael
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:33 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz