I'm having trouble accessing a param passed to one of my procs but i think my code is correct could u have a look at this snippet and see wat is incorrect?
lea eax, ;load address of hThreadID
push eax
push NULL ;No creation flags
push dword ;Push file handle
lea eax, ;Address of ThreadProc
push eax ;
push NULL ;stack size
push NULL ;Security attributes
call ;Create the thread
mov ,eax ;save handle

proc ThreadProc,param:DWORD

push NULL


i thought this should push the value of param onto the stack but it doesnt it puts rather this value 77FCF170 now this is a problem cause it points somewhere in NTDLL. which it shouldnt be doing. any help would be great thnx :)
Posted on 2003-01-20 16:35:36 by keyoke
Try removing "enter", it ought to work.
Posted on 2003-01-21 04:35:14 by Axial
ok ill try that thnx
Posted on 2003-01-21 08:25:12 by keyoke
Axial ur solution didnt work :( um has sum other errors that pop up
Posted on 2003-01-21 12:49:52 by keyoke
:grin: Try to remove the '[' and ']' in "push " that worked here fine
Posted on 2003-01-21 16:04:10 by monkeyO_o