BOOL WINAPI DllMain(HINSTANCE module_handle, DWORD reason_for_call, LPVOID reserved) { if (reason_for_call == DLL_PROCESS_ATTACH) { // add dll search path to load additional modules (FrameCapturer_MP4.dll etc). DLLAddSearchPath(DLLGetDirectoryOfCurrentModule()); } return TRUE; }
fcCLinkage fcExport const char* fcGetModulePath() { return !g_module_path.empty() ? g_module_path.c_str() : DLLGetDirectoryOfCurrentModule(); }
fcAPI const char* fcGetModulePath() { fcTraceFunc(); return !g_fcModulePath.empty() ? g_fcModulePath.c_str() : DLLGetDirectoryOfCurrentModule(); }