Force Visual Studio to customize the function name

Thank you for your time.

The company I work for has a program originally written in 1998 that is working on a custom system. We have written in-house DLLs that provide an API that the program uses to interact with the system. Windows UI was released to another company back in 1998. It was originally written for Windows 98, but we are still using it successfully on our Win7 64-bit systems (in compatibility mode).

Then it becomes necessary to make some changes to the DLL files. Great, no problem. We have a code. But we have no code for the user interface program. So to keep using the same UI program, I need my export to EXACTLY match the names that were exported to the old DLLs.

But the old DLLs were written in 1998 with the Borland compiler. And I am using Visual Studio.

I need to be able to SHAPE the linker to use a specific name verbatim.

For example, the SysReg :: TandemUnlock (DWORD) function was originally exported, decorated as @SysReg @TandemUnlock $ quil.

I need to be able to match this. I could do it with a DEF file.

I tried DEF file with

Export

@SysReg @TandemUnlock $ Quil

does not work.

I also tried the linker / EXPORT option: @SysReg @TandemUnlock $ quil = SysReg :: TandemUnlock

also didn't work

Any ideas how to get this to work?
I have no choice but to create the DLL first and then edit the PE?

Thanks Josh

+3


source to share





All Articles