00001 00009 /* 00010 * CC PDF Converter: Windows PDF Printer with Creative Commons license support 00011 * Excel to PDF Converter: Excel PDF printing addin, keeping hyperlinks AND Creative Commons license support 00012 * Copyright (C) 2007-2010 Guy Hachlili <[email protected]>, Cogniview LTD. 00013 * 00014 * This file is part of CC PDF Converter / Excel to PDF Converter 00015 * 00016 * CC PDF Converter and Excel to PDF Converter are free software; 00017 * you can redistribute them and/or modify them under the terms of the 00018 * GNU General Public License as published by the Free Software Foundation; 00019 * either version 2 of the License, or (at your option) any later version. 00020 * 00021 * CC PDF Converter and Excel to PDF Converter are is distributed in the hope 00022 * that they will be useful, but WITHOUT ANY WARRANTY; without even the implied 00023 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 * GNU General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU General Public License 00027 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 00028 */ 00029 00030 #include "precomp.h" 00031 #include "oemui.h" 00032 #include "debug.h" 00033 00034 #include "LicenseInfoLoader.h" 00035 00037 // 00038 // DLL entry point 00039 // 00046 extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, WORD wReason, LPVOID lpReserved) 00047 { 00048 switch(wReason) 00049 { 00050 case DLL_PROCESS_ATTACH: 00051 VERBOSE(DLLTEXT("Process attach.\r\n")); 00052 LicenseInfoLoader::InitLicenseRetrievedData(); 00053 ghInstance = hInst; 00054 break; 00055 00056 case DLL_THREAD_ATTACH: 00057 VERBOSE(DLLTEXT("Thread attach.\r\n")); 00058 break; 00059 00060 case DLL_PROCESS_DETACH: 00061 VERBOSE(DLLTEXT("Process detach.\r\n")); 00062 break; 00063 00064 case DLL_THREAD_DETACH: 00065 VERBOSE(DLLTEXT("Thread detach.\r\n")); 00066 break; 00067 } 00068 00069 return TRUE; 00070 }