Win 32 API

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!
 
A

Alan Illeman

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?
 
A

Alan Illeman

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?
 
G

Greg

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!
 
A

Alan Illeman

Give me some time, I'll get back to you.
Btw how did you find that vfw32.lib corresponds to avicap32.dll?
 
A

Alan Illeman

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.
 
J

John Phillips

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).
 
E

Elias Korablin

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top