Getting information from a DLL
-
hello ppl what i am trying to do here is find out what functions are available for a particular DLL for example most of the API function are contained in USER32.DLL file we can write code for accessing functions like SendInput and SetLayeredWindowAttributes that is we can explicitly link the DLL file and get those functions to work now what i want to do it there is a third party DLL that i would like to explicitly link now the problem is with USER32.dll i am aware of the functions their return types and their parameters but such is not the case with a third party DLL how do i know what functions this DLL contains the parameters the return type and everything any help would be appreciated Regards Ahmed Ajmal
-
hello ppl what i am trying to do here is find out what functions are available for a particular DLL for example most of the API function are contained in USER32.DLL file we can write code for accessing functions like SendInput and SetLayeredWindowAttributes that is we can explicitly link the DLL file and get those functions to work now what i want to do it there is a third party DLL that i would like to explicitly link now the problem is with USER32.dll i am aware of the functions their return types and their parameters but such is not the case with a third party DLL how do i know what functions this DLL contains the parameters the return type and everything any help would be appreciated Regards Ahmed Ajmal
You can't get parameter and return value information from a DLL. You'll need third-party-supplied information to know that. You can get a list of the functions it exports by examining the export table, but you can't get any information about them, other than their name.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
You can't get parameter and return value information from a DLL. You'll need third-party-supplied information to know that. You can get a list of the functions it exports by examining the export table, but you can't get any information about them, other than their name.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
-
yeah ryan actually i tried the DEPENDS tool that installs with the Visual Studio and yes i did find out the functions their names but not any other imformation and what do u mean by EXPORT TABLE how do i use that Ahmed Ajmal
Cyberizen wrote: what do u mean by EXPORT TABLE how do i use that A DLL's export table is the list of functions that it exports. Read about it in more detail on MSDN.
-
yeah ryan actually i tried the DEPENDS tool that installs with the Visual Studio and yes i did find out the functions their names but not any other imformation and what do u mean by EXPORT TABLE how do i use that Ahmed Ajmal
The export table in the DLL lists all the functions that the DLL exports. This is what the DEPENDS tool examines, so you can't get more than what DEPENDS gives you. It doesn't give parameters or return type.
Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"