DLLImport question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI, I am trying to use LoadIcon function offered by API on managed code.
But I can not find out which dll this function belongs to, I need to find this
out in order to make this function available by DLLImport. How do I figure
this out?

Thank you.
 
I would always do a quick google search before I check MSDN. Another clue is
that if the function starts with "SH" then it would probably come from
aygshell.dll, otherwise my first guess would be coredll.dll.

You can also do a dumpbin /exports on coredll.dll and aygshell.dll then save
those values in a text file and search on those files whenver you need them
:)

And oh yeah, LoadIcon is within coredll.dll. The OpenNETCF Smart Device
Framework made some clean wrapper classes for handling LoadIcon and
DestroyIcon
 
You could also use PInvoke.net to give you the dllimport templates for
several functions. I'm pretty sure LoadIcon is in there.

Rick D.
Contractor
 

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

Back
Top