| |
|
|
 Frank Abbing | CompileMarkSeparationFindet alle aktiven Fenster, auch wenn sie im Iconmodus sind
Ermittelt Fensterhandle, HInstance des Fensters und Fensternamen
(c) Frank Abbing
Declare a&,x&,y&,text$,z&
Def GetWindowLong(2) !"USER32","GetWindowLongA"
Def GetWindow(2) !"USER32","GetWindow"
Cls
z&=0
a&=0
x&=%hwnd
While x&
x&=GetWindow(x&,z&)
z&=2
If x&
y&=GetWindowLong(x&,-6)
If y&
text$=GetText$(x&)
If text$<>""
AddString "Handle= "+Str$(x&)
AddString "HInstance= "+Str$(y&)
AddString "Name= "+Chr$(34)+text$+Chr$(34)
AddString " "
a&=a&+1
EndIf
EndIf
EndIf
Wend
text$=Str$(a&)+" Gefundene Fenster:"
@ListBox$(text$,1)
WaitInput
End
|
|
|
| |
|
|
|
 Jörg Sellmeyer | properly moreover then too yet whom Dazugehörigen way the program: CompileMarkSeparationermittelt den Programmpfad zu einem Fensterhandle
von Jörg Sellmeyer
Def GetWindowModuleFileName(3) !"User32","GetWindowModuleFileNameA"
Proc WinModuleFileName
Parameters Hdl&
Declare buf$
buf$=MkStr$(chr$(0),256)
@GetWindowModuleFileName(Hdl&,addr(buf$),256)
buf$=trim$(buf$)
Return buf$
EndProc
Findet alle aktiven Fenster, auch wenn sie im Iconmodus sind
Ermittelt Fensterhandle, HInstance des Fensters und Fensternamen
(c) Frank Abbing
Declare a&,x&,y&,text$,z&
Def GetWindowLong(2) !"USER32","GetWindowLongA"
Def GetWindow(2) !"USER32","GetWindow"
Cls
z&=0
a&=0
x&=%hwnd
While x&
x&=GetWindow(x&,z&)
z&=2
If x&
y&=GetWindowLong(x&,-6)
If y&
text$=GetText$(x&)
If text$<>""
AddString "Handle= "+Str$(X&)
WinModuleFileName x&J. S.
AddString "Programm= " + @$(0)J. S.
AddString "HInstance= "+Str$(y&)
AddString "Name= "+Chr$(34)+text$+Chr$(34)
AddString " "
a&=a&+1
EndIf
EndIf
EndIf
Wend
text$=Str$(a&)+" Gefundene Fenster:"
@ListBox$(< Text$, 1)
|
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 06/15/06 ▲ |
|
|
|
|
 Michael Wodrich | by me show some Paths on The with Profan erstellte EXE. the with some nothing standing is Yes OK, but ... 
Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 06/15/06 ▲ |
|
|
|
|
 Rolf Koch | is correct what Michael says. is by me too so. |
|
|
| |
|
|
|
 Jörg Sellmeyer | Oh, sorry! Have so did i straight first notice. I had the times under W98 zusammengebastelt. there hats yet functions. XP shining there rigoroser in the Abkapselung the processes To his. I Have no idea, whether mans XP too running kriegt. |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ...  | 06/15/06 ▲ |
|
|
|
|
 Michael Wodrich | Yes is correct - M$ has time again dran rumgeschraubt.[quote:ea364f920b]To get more information on windows 2000, use the Process status Helper set of APIs (known as PSAPI, sea Psapi.h include file), available since windows NT 4.0. APIs such as GetModuleFileNameEx and GetModuleBaseName offer equivalent functionality. [/quote:ea364f920b] Erstes Suchresultat - now must I only yet whom remainder find...
Best wishes Michael Wodrich |
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 06/15/06 ▲ |
|
|
|