ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

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

Generated on Sat May 26 2012 04:20:43 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.