Win 32 API

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

How can I find a listing of all the functions defined in a
DLL? Also, If I have a function described in one of the
SDK that is mean for use with C++, how can I find in which
DLL this function is; the documentation will not. I will
give me only the headers...

Thank you!
 
Greg said:
How can I find a listing of all the functions defined in a
DLL? Also, If I have a function described in one of the
SDK that is mean for use with C++, how can I find in which
DLL this function is; the documentation will not. I will
give me only the headers...

Thank you!

The API describes the functions. Who cares which dll it's in?
 
My MSDN CD gives the .LIB file for each function.
For example SendMessage(..) is listed as in user32.lib
(for developers) which no doubt corresponds to
user32.dll (for applications). Does that help?
 
Yes and No... the .lib name does not always correspond to
the .dll name file. For instance, "capCreateCaptureWindow
(..)" correspond to Vfw32.lib according to the MSDN CD;
however, the .dll file that exposes this function is
avicap32.dll. Any further thoughts?

Thanks!
 
Give me some time, I'll get back to you.
Btw how did you find that vfw32.lib corresponds to avicap32.dll?
 
It's been years since I dabbled in VB but isn't there an
'API Tool' or folder into which you load your code,
start the declaration and having typed in the function name
it autocompletes the dll name. I seem to remember copy
and pasting the complete declaration back into my code.

I may have not got the description quite right. Ask in a VB
ng.
 
One quick way is to write a C++ program which uses the function in question,
then run Dependancy Walker on it to see which DLL's the program is dependant
on (it will also list which functions reside in which DLL).
 
Greg said:
How can I find a listing of all the functions defined in a
DLL? Also, If I have a function described in one of the
SDK that is mean for use with C++, how can I find in which
DLL this function is; the documentation will not. I will
give me only the headers...
Can some kind of file search help you ? Most of shells (as FAR) can find
files by mask & contained string.
Or you can use utility dumpbin : dumpbin /exports <dll-name> to obtain full
list of exports for any DLL of interest...
 
Back
Top