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