How can I find the path of DLL was loaded from?

Is there an API that is equivalent to Win32’s GetModuleFileName(). I
need to know the path of where the DLL is loading from at runtime.

Appreciate any help.

-Beth