mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
initial checkin
This commit is contained in:
18
MAC_SDK/Source/Shared/Unicows.cpp
Normal file
18
MAC_SDK/Source/Shared/Unicows.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user