The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: sergeyn on June 30, 2009, 08:11:50 AM

Title: help to get the code to compile (structure on the stack)
Post by: sergeyn on June 30, 2009, 08:11:50 AM
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.
Title: Re: help to get the code to compile (structure on the stack)
Post by: sinsi on June 30, 2009, 08:17:06 AM
So post #1 is asking about a disassembly of something to do with a process. Nice one.
Title: Re: help to get the code to compile (structure on the stack)
Post by: BogdanOntanu on June 30, 2009, 02:28:28 PM
Yeah... thread locked  :cheekygreen: