News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Macro Syntax

Started by ragdog, March 14, 2010, 09:41:00 AM

Previous topic - Next topic

ragdog

Good Morning

Gives a macro that i can use this syntax in masm32?

hMyDLL = LoadLibrary(DllLocation);

And a other little question what make this bracket?

(hMyDLL != NULL)

Thanks again

Vortex

.386
.model flat,stdcall
option casemap:none

include     \masm32\include\windows.inc
include     \masm32\include\kernel32.inc
include     \masm32\macros\macros.asm

includelib  \masm32\lib\kernel32.lib

.data?

hDll        dd ?

.code

start:

    mov     hDll,rv(LoadLibrary,"user32.dll")
    invoke  FreeLibrary,hDll                 ; hDll = eax
    invoke  ExitProcess,0

END start