Exporting custom API's

This is a discussion on Exporting custom API's within the Windows Programming forums, part of the Platform Specific Boards category; Hey guys, I don't know how to explain this but what I'm trying to create an API that does the ...

  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, 10:12 AM
  2. Custom Allocation
    By SevenThunders in forum C Programming
    Replies: 17
    Last Post: 04-09-2007, 05:10 PM
  3. Stl sets and custom classes.
    By cunnus88 in forum C++ Programming
    Replies: 3
    Last Post: 05-13-2006, 12:58 AM
  4. custom controls
    By eXistenZ in forum Windows Programming
    Replies: 5
    Last Post: 04-18-2005, 07:09 AM
  5. Exporting Object Hierarchies from a DLL
    By andy668 in forum C++ Programming
    Replies: 0
    Last Post: 10-20-2001, 02:26 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21