help to get the code to compile (structure on the stack)

Started by sergeyn, June 30, 2009, 08:11:50 AM

Previous topic - Next topic

sergeyn

The following code (which is basically ida pro output) doesn't compile with masm



PROCESS_INFORMATION STRUCT ; (sizeof=0x10, standard type)
hProcess dword ? ; offset
hThread dword ? ; offset
dwProcessId dword ?
dwThreadId dword ?
PROCESS_INFORMATION ends

MyProc   proc near

procinfo =  PROCESS_INFORMATION ptr -54h

...


I get an error " error A2027:operand must be a memory expression" pointing to a line with procinfo.

Thanks.

sinsi

So post #1 is asking about a disassembly of something to do with a process. Nice one.
Light travels faster than sound, that's why some people seem bright until you hear them.

BogdanOntanu

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro