Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygend3dx9_37_main.c
Go to the documentation of this file.
00001 /* 00002 * Direct3D X 9 main file 00003 * 00004 * Copyright (C) 2007 David Adam 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 * 00020 */ 00021 00022 #include "config.h" 00023 #include "wine/port.h" 00024 00025 #include <stdarg.h> 00026 00027 #include "windef.h" 00028 #include "winbase.h" 00029 #include "wingdi.h" 00030 #include "winuser.h" 00031 00032 #include "d3dx9.h" 00033 00034 /*********************************************************************** 00035 * DllMain. 00036 */ 00037 BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) 00038 { 00039 switch(reason) 00040 { 00041 case DLL_WINE_PREATTACH: 00042 return FALSE; /* prefer native version */ 00043 case DLL_PROCESS_ATTACH: 00044 DisableThreadLibraryCalls(inst); 00045 break; 00046 case DLL_PROCESS_DETACH: 00047 break; 00048 } 00049 return TRUE; 00050 } 00051 00052 /*********************************************************************** 00053 * D3DXCheckVersion 00054 * Checks whether we are compiling against the correct d3d and d3dx library. 00055 */ 00056 BOOL WINAPI D3DXCheckVersion(UINT d3dsdkvers, UINT d3dxsdkvers) 00057 { 00058 if(d3dsdkvers==D3D_SDK_VERSION && d3dxsdkvers==37) 00059 return TRUE; 00060 else 00061 return FALSE; 00062 } Generated on Sun May 27 2012 04:22:12 for ReactOS by
1.7.6.1
|