0

im writing a win32 dll and i need a procedure in this format (C++):

int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)

so how can i do this?

why won't this work (fasm):

section '.data' data readable
        msg db "Text",0
section '.code' code readable executable
proc procname mWnd,aWnd,data,parms,show,nopause
    mov [data],msg
    mov eax,3
    ret
endp

; exports declarations...
1
Contributor
2
Replies
3
Views
7 Years
Discussion Span
Last Post by brando|away
0

the equivilient i need to do in C++ is

int __stdcall procname(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause) {
    strcpy(data, "Text");
    return 3;
}
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.