Files
cuetools.net/MAC_SDK/Source/Shared/Unicows.cpp
2008-10-13 19:25:11 +00:00

19 lines
399 B
C++

#include <windows.h>
HMODULE LoadUnicowsProc(void)
{
HMODULE hModule = LoadLibraryA("unicows.dll");
if (hModule == NULL)
{
MessageBoxA(NULL, "The Microsoft Layer for Unicode failed to initialize. Please re-install.", "Unicode Failure", MB_OK | MB_ICONERROR);
_exit(-1);
}
return hModule;
}
extern "C"
{
extern FARPROC _PfnLoadUnicows = (FARPROC) &LoadUnicowsProc;
}