English
Source / code snippets

Api existing function Laufzeit Verify present

 
Andreas Hötker, URL=paules-pc-forum.de/forum/712778-mail45.html, ZEITPUNKT=29.06.2009
here time one korrigierter View source - i will hoping, the the now everywhere runs...
CompileMarkSeparation
Def GetCurrentProcess(0) !"Kernel32","GetCurrentProcess"
Def GetProcAddress(2) !"Kernel32","GetProcAddress"
Def EnumProcessModules7(4) !"Kernel32","K32EnumProcessModules"
Def EnumProcessModules(4) !"PSAPI","EnumProcessModules"
Declare Edit&, Text&, PSAPI&, Needed&, ModuleHandles#, Winver!, OldText$
Windowstyle 31+512
Windowtitle "Ist Funktion vorhanden?"
Window 0,0-640,440
Edit&=Control("Edit","ZwQuerySystemInformation",$40000000 | $10000000 | $1000 | $400000,20,40,(Width(%HWND)-100),30,%HWND,4113,%HINSTANCE)
Text&=Create("Text",%HWND,"",20,100,(Width(%HWND)-100),200)
Settext Text&,Funktion_vorhanden(GetText$(Edit&))
Winver!=Val($WinVer)
Usermessages $10

While %UMessage<>$10

    Getmessage

    IF OldText$<>GetText$(Edit&)

        Settext Text&,Funktion_vorhanden(GetText$(Edit&))
        OldText$=GetText$(Edit&)

    endif

wend

End

Proc Funktion_vorhanden

    Parameters FunktionsName$
    Declare RetText$, Counter&
    RetText$="Die API "+FunktionsName$+" wurde nicht gefunden!                    "
    Counter&=0
    DIM ModuleHandles#,4
    EnumProcessModules(GetCurrentProcess(),ModuleHandles#,4,addr(Needed&))
    Dispose ModuleHandles#
    DIM ModuleHandles#,Needed&+40
    EnumProcessModules(GetCurrentProcess(),ModuleHandles#,SizeOf(ModuleHandles#),addr(Needed&))

    Repeat

        IF GetProcAddress(Long(ModuleHandles#,counter&),addr(FunktionsName$))>0

            RetText$="Die API "+FunktionsName$+" wurde gefunden!                          "

        endif

        Counter&=Counter&+4

    Until Counter&=Needed&

    Dispose ModuleHandles#
    Return RetText$

endproc

 
06/30/09  
 



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

3.512 Views

Untitledvor 0 min.
AndreasS01/28/19
p.specht01/03/19
Christian Hahn07/16/13
Andre Rohland10/16/12
More...

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


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