"ok, what i mean here is something more like what DirectX and OpenGL do.
so i would provide functions in a library that you link to like DirectX or OpenGL, but dont have to have the dll's you linked to in the apps directory. so how does DirectX and OpenGL do that ?, i mean how does the applicaction know that in order to load the dll it has to check System32 ?."
For this question i am giving you the answer.
Check the link,
Dynamic-Link Library Search Order:
you will get an idea of how LoadLibrary search for a dll.If your dll are placed in System directory
then they are automatically fetched by the loadlibrary.