Thread: Exporting custom API's

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    38

    Exporting custom API's

    Hey guys, I don't know how to explain this but what I'm trying to create an API that does the same thing as the original. For example: SendInput and my own will be MySendInput. I know it sound kinda lame -_-" The custom API will be in a DLL that is going to export it, so I can use in my programs.

    I'm not asking for a source code, just some help for accomplishing this

    Thanks

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    What's your question / what are you having troubles with ?

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Make your functions in the DLL the way you would in your program script. Then use LoadLibrary() to get the DLL, and GetProcAddress() to get the function from the DLL. (Note that you will have to use the mangled function name found in the DLLs makefile.)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to copy binary files using Unix API's
    By rohan_ak1 in forum C Programming
    Replies: 25
    Last Post: 05-07-2008, 09:12 AM
  2. Custom Allocation
    By SevenThunders in forum C Programming
    Replies: 17
    Last Post: 04-09-2007, 04:10 PM
  3. Stl sets and custom classes.
    By cunnus88 in forum C++ Programming
    Replies: 3
    Last Post: 05-12-2006, 11:58 PM
  4. custom controls
    By eXistenZ in forum Windows Programming
    Replies: 5
    Last Post: 04-18-2005, 06:09 AM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 01:26 PM