I was wondering how to create a DLL with MASM with exported functions called exactly what I want to. If I try:
SomeProc PROC EXPORT par1, par2
SomeProc ENDP
I get: _SomeProc@8 and I don't want to. I want to get "SomeProc".
SomeProc PROC EXPORT par1, par2
SomeProc ENDP
I get: _SomeProc@8 and I don't want to. I want to get "SomeProc".
have a plaintext definition file (in this example, dlldef.def)
it should contain something like:
LIBRARY dll
EXPORTS SomeProc
link with this:
link /dll /subsystem:windows /entry:L
ibMain /def:dlldef.def dll.obj
that should work...
it should contain something like:
LIBRARY dll
EXPORTS SomeProc
link with this:
link /dll /subsystem:windows /entry:L
ibMain /def:dlldef.def dll.obj
that should work...
You can define the functions as SYSCALL, it will use the name as you define it. Iirc, it's calling convention is exactly the same as STDCALL.
Thomas
Thomas