I have codesnippets with "return Var" in them... my question, how do i use it? return aint something that masm32 knows by default as far as I know, or is the snippets for some other assembler? ::)
Exampel
...
ADDR lpData,ADDR dwSize
invoke RegCloseKey,phkResult
return lpData
...
Thanks!
Most likely it's a macro which does this:
mov eax,lpData
ret
(eax is conventionally used for returning values)
Sweet, i was fishing for something like that but i wasn't sure.
Thanks :U
It is one of the many macros listed in the MACROS.ASM file provided with the MASM32 package.
return MACRO arg
mov eax, arg
ret
ENDM
Raymond