English
Source / code snippets

Window finds lever names

 

Frank
Abbing

CompileMarkSeparation
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&)
                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
 
06/15/06  
 




Jörg
Sellmeyer
properly moreover then too yet whom Dazugehörigen way the program:
CompileMarkSeparation
ermittelt 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.
 
06/15/06  
 




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  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.783 Views

Untitledvor 0 min.
Member 5044459 vor 6 Tagen
AndreasS11/27/18
Ernst04/30/14
Thomas Freier02/21/14
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie