+ /* char conversion calls */
+ p_WideCharToMultiByte = (t_WideCharToMultiByte)
+ GetProcAddress(hLib, "WideCharToMultiByte");
+ p_MultiByteToWideChar = (t_MultiByteToWideChar)
+ GetProcAddress(hLib, "MultiByteToWideChar");
+
+ /* find files */
+ p_FindFirstFileA = (t_FindFirstFileA)
+ GetProcAddress(hLib, "FindFirstFileA");
+ p_FindFirstFileW = (t_FindFirstFileW)
+ GetProcAddress(hLib, "FindFirstFileW");
+ p_FindNextFileA = (t_FindNextFileA)
+ GetProcAddress(hLib, "FindNextFileA");
+ p_FindNextFileW = (t_FindNextFileW)
+ GetProcAddress(hLib, "FindNextFileW");
+ /* set and get directory */
+ p_SetCurrentDirectoryA = (t_SetCurrentDirectoryA)
+ GetProcAddress(hLib, "SetCurrentDirectoryA");
+ p_SetCurrentDirectoryW = (t_SetCurrentDirectoryW)
+ GetProcAddress(hLib, "SetCurrentDirectoryW");
+ p_GetCurrentDirectoryA = (t_GetCurrentDirectoryA)
+ GetProcAddress(hLib, "GetCurrentDirectoryA");
+ p_GetCurrentDirectoryW = (t_GetCurrentDirectoryW)
+ GetProcAddress(hLib, "GetCurrentDirectoryW");
+ FreeLibrary(hLib);
+ }
+
+
+ hLib = LoadLibrary("MSVCRT.DLL");
+ if (hLib) {
+ /* unlink */
+ p_wunlink = (t_wunlink)
+ GetProcAddress(hLib, "_wunlink");
+ /* wmkdir */
+ p_wmkdir = (t_wmkdir)
+ GetProcAddress(hLib, "_wmkdir");
+ /* wopen */
+ p_wopen = (t_wopen)
+ GetProcAddress(hLib, "_wopen");
+