flat assembler
Message board for the users of flat assembler.
Index
> Windows > Calling DLL functions? |
Author |
|
asmhack 02 May 2008, 02:00
Code: format PE GUI 4.0 entry start include 'win32a.inc' section '.code' code readable executable start: call [_OpenPrinter] ;call your function from the dll (no arguments) cmp eax,0 ;check the return value ;... invoke ExitProcess,0 section '.idata' import data readable writeable library kernel32,'kernel32.dll',\ printer,'printer.dll' import kernel32,\ ExitProcess,'ExitProcess' import printer,\ _OpenPrinter,'_OpenPrinter' hope this will help you |
|||
02 May 2008, 02:00 |
|
MickyD 02 May 2008, 05:10
Thank you asmhack, really appreciated!
|
|||
02 May 2008, 05:10 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.