+ Reply to Thread
Results 1 to 2 of 2

Thread: How can I hide the export function name of a DLL?

  1. #1

    How can I hide the export function name of a DLL?

    I have a DLL that exports some functions. An one can use tools available on the internet and can have name of the functions. I want to hide name of the exported function name. How can I do this using VC++?

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Posts
    109
    Your source file:

    a. MySource.cpp
    Code:
    //MySource.cpp
    extern "C" void __declspec(dllexport) MyFunct(char *pAnything)
    {
    }
    b. Create a .DEF file and add it to project
    Project Settings->Linker->Input->Module Definition File->My.DEF

    c. My.Def file
    Code:
    LIBRARY	"YourProject"
    EXPORTS
    	MyFunct	@1 NONAME
    This should hide your function name!

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts