Excel 2003 VBA - kernel32 functions - and other libs

user590715 picture user590715 · Jan 6, 2012 · Viewed 13.5k times · Source

I've been programming in VBA for Excel 2003 for some years now, and only recently I've been introduced to:

Declare Sub AAAA Lib "kernel32" Alias "AAAA"

by an answer here on Stack Overflow.

What I've been unable to find is (no googlefu could help me):

  • What are all the functions available in "kernel32"?

  • What are the other available (free) LIBS?

  • Can I make my own?

I just need some pointers, ideas and/or tutorial links to point me in the right direction.

Answer

JimmyPena picture JimmyPena · Jan 9, 2012

What you are looking at are Windows API declarations.

Several popular examples include:

As far your specific questions:

What are all the functions available in "kernel32"

A DLL viewer such as DLL Export Viewer or ApiViewer may be useful here.

What are the other available (free) LIBS

See the links I posted, although I imagine there are dozens or hundreds more proprietary DLLs that we'll never find.

Can I make my own?

Yes, but I only have experience creating ActiveX DLLs so I can't speak to that. I did find one example, however: What is a DLL?