English
Regulars table & Café

TNT and GetLastError

 
good evening...

is it possible with others Prozessen whom last aufgetretenen API-Error (GetLastError) auszulesen?

Have strain a call get => must same works. everything further therefore tommorrow .

Greeting

Andreas
 
09/04/06  
 



so, then time go...
it's about subesquent View source:
CompileMarkSeparation
Def @GetLastError(0) !"KERNEL32","GetLastError"
Def @SetLastError(1) !"KERNEL32","SetLastError"
DEF @GetDlgCtrlID(1) !"USER32","GetDlgCtrlID"
DEF @ButtonClicked(1) @GetDlgCtrlID(@&(1))=-%MENUITEM
Def @FreeLibrary(1) !"kernel32","FreeLibrary"
Declare Error&,Zurück&,Prod&
WindowStyle 31
WindowTitle "SetLastError"
Window 0,0-640,440
LET Zurück&=@CreateButton(%HWND,"Fehler setzen",20,20,300,30)
LET Prod&=@CreateButton(%HWND,"Fehler produzieren",20,80,300,30)

While 0=0

    Waitinput

    IF @ButtonClicked(Zurück&)

        CLS
        Locate 15,0
        @SetLastError($0ABC1234)
        Print "$"+@HEX$(@GetLastError()),"      "+@str$(@GetLastError())

    ElseIF @ButtonClicked(Prod&)

        CLS
        Locate 15,0
        @FreeLibrary(0)
        Print @GetLastError()

    endif

wend


After the started the Quelltextes becomes first the Button Error settle klicked.
now started we time [...]  and Mark whom Process PROFAN.EXE.
in the Menu becomes then Program/Options and number in Bytefolge select and whom then erscheinenden dialog $ABC1234 association. now clicking we right in that Treeview on PROFAN.EXE, dial memory search from and clicking thereafter (without in the dialog something To Change) on the Button memory search. TNT seek now in memory of PROFAN.EXE to the number $ABC1234, The the worth of GetLastError corresponds to.
quite end the for User accessible virtual Prozessspeichers becomes [...]  fündig:
windows2000 (SP2 and SP4) => address 2147344436

Change we now through You can the Buttons Error produzieren the value of GetLastError, changes itself too the worth, the in memory on this place standing.

These address relating itself but apparently not only on this a Process, sonder on this address shining in each Process the worth of GetLastError To stand.
what me now yet interested: How sounds The found address XP?
can me there someone help??
 
09/05/06  
 



under not NT-based Systemen sees The thing against it differently from.
there the virtual memory, in the the worth of GetLastError stored becomes, on this place complete differently manages becomes as NT, has there eachone Process another Errorcodeadresse.
 
10/03/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.043 Views

Untitledvor 0 min.
H.Brill04/28/18
Christian Hahn12/14/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (3x)


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