-1

I want to know the name of the DLL/LIB in which functions declared in fileapi.h are kept.

So that I can use LoadLibrary(dllname) (if it is inside DLL).

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
simplePerson43
  • 3,787
  • 1
  • 15
  • 10
  • 3
    It's in the Microsoft documentation. Usually the easiest thing to do is google the function name. – Jonathan Potter Jul 08 '20 at 21:05
  • Hi @simplePerson43, is that the answer solves your issue? You could feel free to [accept](https://stackoverflow.com/help/someone-answers) it if it does help. – Drake Wu Jul 23 '20 at 06:35

1 Answers1

1

The fileapi.h header documentation lists the functions, and their individual documentations all say the same thing - the functions are implemented in kernel32.dll. Which you don't need to use LoadLibrary() for, you can use GetModuleHandle() instead, since kernel32.dll is loaded by default in all processes.

To get the address of a function in a loaded DLL module, you need to use GetProcAddress(), giving it an HMODULE from LoadLibrary/Ex() or GetModuleHandle().

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770