Hi, I'm working on the dll tutorial and I wanna pass the dll the addresses of x and y variables and on dll return have the values in it. I probably got it all wrong (doesn't seem to work anyways) but this is how I tried calling the dll: mov eax,offset ScrY push eax mov eax,offset ScrX push eax call FuncAddr and this is the dll function: ScreenXY proc xScr:DWORD,yScr:DWORD invoke GetSystemMetrics,SM_CXSCREEN mov xScr,eax invoke GetSystemMetrics,SM_CYSCREEN mov yScr,eax mov eax,TRUE ret ScreenXY endp This message was edited by goofee, on 5/7/2001 3:41:55 AM
Posted on 2001-05-07 01:57:00 by goofee
Ok, finally figured it out myself: ScreenXY proc xScr:DWORD,yScr:DWORD push ebx mov ebx,xScr invoke GetSystemMetrics,SM_CXSCREEN mov ,eax xor ebx,ebx mov ebx,yScr invoke GetSystemMetrics,SM_CYSCREEN mov ,eax pop ebx mov eax,TRUE ret ScreenXY endp
Posted on 2001-05-07 04:52:00 by goofee