|
// Classic Shell (c) 2009-2010, Ivo Beltchev
// The sources for Classic Shell are distributed under the MIT open source license
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include "GlobalSettings.h"
#include "TranslationSettings.h"
#include "ClassicStartMenuDLL.h"
#include "IconManager.h"
#include "Settings.h"
#pragma comment(linker, \
"\"/manifestdependency:type='Win32' "\
"name='Microsoft.Windows.Common-Controls' "\
"version='6.0.0.0' "\
"processorArchitecture='*' "\
"publicKeyToken='6595b64144ccf1df' "\
"language='*'\"")
BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
if (ul_reason_for_call==DLL_PROCESS_ATTACH)
{
g_Instance=hModule;
wchar_t fname[_MAX_PATH];
GetModuleFileName(hModule,fname,_countof(fname));
*PathFindFileName(fname)=0;
wcscat_s(fname,_countof(fname),INI_PATH L"StartMenu.ini");
ParseGlobalSettings(fname);
GetModuleFileName(hModule,fname,_countof(fname));
*PathFindFileName(fname)=0;
wcscat_s(fname,_countof(fname),INI_PATH L"StartMenuL10N.ini");
ParseTranslations(fname);
g_IconManager.Init();
}
return TRUE;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Ivo started programming in 1985 on an Apple ][ clone. He graduated from Sofia University, Bulgaria with a MSCS degree. Ivo has been working as a professional programmer for over 12 years, and as a professional game programmer for over 10. He is currently employed in Pandemic Studios, a video game company in Los Angeles, California.