English
Assembler Forum

functions a DLL Call

 
How can I in MASM functions a strangers DLL Call?
 
11/05/06  
 




Frank
Abbing
Call and through the Macros Scall.
 
11/05/06  
 



To Call need I a address - correctly.? Mmmh...
GetProcAdress can I in a driver not using, to hardship could I but the required Adressen in the Usermode detect un on whom driver over give...
 
11/05/06  
 




Frank
Abbing
If you to the Dll no Libray own, must You GetProcAdress() using, correctly.. there's too Tools, from of/ one Dll a Library produce. Perhaps should You time in this direction detect.
 
11/05/06  
 



it's about a function from the NTDLL. The LIB and INC have I - I but at the same time The LIB and INC the NTOSKRNL.EXE using must and so then some things twice declared go, white I do not very, whether it somewhere Perhaps crash.
ought to it Problems give, bräuchte I a Workarround without LIB and INC.
there The NTDLL in each Process on The same address loaded becomes, should it over CALL and the investigation the address in the Usermode really functions.
 
11/05/06  
 




Frank
Abbing
the must You testing, whether your both Incs bump.
there's too a Possibility by Extern-Definition. so can you The Libraries How dwelt integrate. in lieu of the conventional Inc-File can you you a new Inc-File basteln, so looks:

externdef _imp__Funktionname@0TR pr4
Funktionname equ <_imp__Funktionname@0>

so verfährst You with all functions, The You in your Program Call want, where PTR pr4 The Number of Parameter angibt, which The function needed. in this example means 4.
functions, so declared go, can you integrally normal with Invoke Call.
 
11/05/06  
 



Hello Frank...

so, I must call use, the standing now solid. have you got time one small example for call, with the a API with several functions called becomes (z.B. Messagebox produce)?

Greeting

Andreas
 
11/28/06  
 



Params simply inverse on the Stack pack. MessageBoxApi has 4 Parameter?
 
11/28/06  
 



Moin...
very understood, I know wished.
The first Parameter must means lastly draufgepackt will be, so it first again heruntergeholt go can - correctly.?

as kid has it me always on the most Fun made, The Bauklötze of under from the Turm To wander - but here's the somehow well not appropriate .
 
11/28/06  
 




RGH
[quote:95081de37f=Andreas Hötker]as kid has it me always on the most Fun made, The Bauklötze of under from the Turm To wander - but here's the somehow well not appropriate . [/quote:95081de37f]
i think, the has already then To marvellous crash led! ;)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
11/28/06  
 




Frank
Abbing
To Call there one Macro, SCall. so can you The Parameter How with Invoke indicate. with only light Einschränkungen:

Scall Messagebox, a, b, c, d
 
11/28/06  
 



Have call and push taken, goes wonderful. The address have I the driver from the Usermode Komponente transfer.

best Thanks

Andreas
 
11/29/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

9.384 Views

Untitledvor 0 min.
funkheld12/11/22
Christof Neuß12/06/18
E.T.06/02/15
Ernst10/18/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