Click here to Skip to main content
15,908,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Please let me know the call to call Kernel mode DLLs from the drivers dynamically.
My Query: I want to call same function from different DLLS, since if these DLLs loaded statically we can't call the same function, but if we can load dynamically then we can call the function. 1st load the particular DLL and then call the function, But how to load DLLs dynamically in kernel?

BR
Satendra
Posted
Updated 19-Jun-12 3:12am
v2
Comments
Richard MacCutchan 19-Jun-12 10:30am    
I am not sure that you can load a DLL into kernel space, but I would be interested if someone can definitively answer this question. It may be better if you explain exactly what you are trying to do.
satendra K 5-Jul-12 4:36am    
I got the solution:

Need to create the DLL as a export driver, export one function of the DLL to the driver and return the function pointers in that function call from the driver, which needs to call from the DLL.
I have experimented this and its working fine.

BR
Satendra
satendra K 20-Jun-12 5:49am    
Actually I want to load plugin DLLs(MP3,g729 and different codec), since driver(application) can call any codec at run time with same interface functions having in all dlls, so its must that first it load particular dll and then call the function.

1 solution

I got the solution:

Need to create the DLL as a export driver, export one function of the DLL to the driver and return the function pointers in that function call from the driver, which needs to call from the DLL.
I have experimented this and its working fine.

BR
Satendra
 
Share this answer
 
Comments
Richard MacCutchan 5-Jul-12 4:26am    
Thanks for updating your query; this will be useful for other people looking for help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900