Where can I find a table of all functions inside in kernel32.dll?
-
Hi all, I'm trying to add a splash screen to a dll inside DllMain (process_attach) and the docs says there are lots to think about. E.g I can not call functions outside kernel32.dll, etc... Now I need to know where I can find a table of all functions listed in kernel32.dll? Anyone? The docs also says I can not call any registry functions... by if I want to do this, how can I go on?! /Tommy
-
Hi all, I'm trying to add a splash screen to a dll inside DllMain (process_attach) and the docs says there are lots to think about. E.g I can not call functions outside kernel32.dll, etc... Now I need to know where I can find a table of all functions listed in kernel32.dll? Anyone? The docs also says I can not call any registry functions... by if I want to do this, how can I go on?! /Tommy
if you mean name of this function then you can use Depends application from VC tools.
-
Hi all, I'm trying to add a splash screen to a dll inside DllMain (process_attach) and the docs says there are lots to think about. E.g I can not call functions outside kernel32.dll, etc... Now I need to know where I can find a table of all functions listed in kernel32.dll? Anyone? The docs also says I can not call any registry functions... by if I want to do this, how can I go on?! /Tommy
The reason for the restriction is that you don't know what order the loader will decide to initialise DLLs in, and you shouldn't use any DLL that hasn't been initialised. The only DLL it's always safe to use at this point is kernel32.dll, because that's where the Win32 bit of process setup lives - it's guaranteed to be initialised first. A large amount of the GUI code lives in User32.dll and Gdi32.dll, so you shouldn't do what you're proposing to do. If you must do it, delay it until some other function in your DLL is called. Personally I would advise not doing it at all. For information on how the .NET Framework breaks these rules, and the impact that has, read Chris Brumme's blog entry[^] on the subject.
-
Hi all, I'm trying to add a splash screen to a dll inside DllMain (process_attach) and the docs says there are lots to think about. E.g I can not call functions outside kernel32.dll, etc... Now I need to know where I can find a table of all functions listed in kernel32.dll? Anyone? The docs also says I can not call any registry functions... by if I want to do this, how can I go on?! /Tommy
Tommy Svensson wrote: Now I need to know where I can find a table of all functions listed in kernel32.dll? Anyone? Depends.exe dumpbin /exports are two that I know of.
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?