DSETUP.H (2917B)
1 // 2 // Copyright 2020 Electronic Arts Inc. 3 // 4 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free 5 // software: you can redistribute it and/or modify it under the terms of 6 // the GNU General Public License as published by the Free Software Foundation, 7 // either version 3 of the License, or (at your option) any later version. 8 9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 10 // in the hope that it will be useful, but with permitted additional restrictions 11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 12 // distributed with this program. You should have received a copy of the 13 // GNU General Public License along with permitted additional restrictions 14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection 15 16 /*========================================================================== 17 * 18 * Copyright (C) 1995 Microsoft Corporation. All Rights Reserved. 19 * 20 * File: dsetup.h 21 * Content: DirectXSetup, error codes and flags 22 ***************************************************************************/ 23 24 #ifndef __DSETUP_H__ 25 #define __DSETUP_H__ 26 27 #ifdef _WIN32 28 #define COM_NO_WINDOWS_H 29 #include <objbase.h> 30 #else 31 #define GUID void 32 #endif 33 34 #ifdef __cplusplus 35 extern "C" { 36 #endif 37 38 #define DSETUPERR_BADWINDOWSVERSION -1 39 #define DSETUPERR_SOURCEFILENOTFOUND -2 40 #define DSETUPERR_BADSOURCESIZE -3 41 #define DSETUPERR_BADSOURCETIME -4 42 #define DSETUPERR_NOCOPY -5 43 #define DSETUPERR_OUTOFDISKSPACE -6 44 #define DSETUPERR_CANTFINDINF -7 45 #define DSETUPERR_CANTFINDDIR -8 46 #define DSETUPERR_INTERNAL -9 47 48 49 #define MAX_INFLINE (16*1024) 50 #define MAX_DESCRIPTION 256 51 52 #define DSETUP_DDRAW 0x00000001 /* install DirectDraw */ 53 #define DSETUP_DSOUND 0x00000002 /* install DirectSound */ 54 #define DSETUP_DPLAY 0x00000004 /* install DirectPlay */ 55 #define DSETUP_DDRAWDRV 0x00000008 /* install DirectDraw Drivers */ 56 #define DSETUP_DSOUNDDRV 0x00000010 /* install DirectSound Drivers */ 57 #define DSETUP_DPLAYSP 0x00000020 /* install DirectPlay Providers */ 58 #define DSETUP_DIRECTX DSETUP_DDRAW | DSETUP_DSOUND | DSETUP_DPLAY | DSETUP_DDRAWDRV | DSETUP_DSOUNDDRV | DSETUP_DPLAYSP 59 #define DSETUP_REINSTALL 0x00000080 /* install DirectX even if existing components have the same version */ 60 61 int WINAPI DirectXSetup( HWND hwnd, LPSTR root_path, DWORD flags ); 62 int WINAPI DirectXDeviceDriverSetup( HWND hwnd, LPSTR driver_class, LPSTR inf_path, LPSTR driver_path, DWORD flags ); 63 64 typedef int (WINAPI * LPDIRECTXSETUP)( HWND, LPSTR, DWORD ); 65 typedef int (WINAPI * LPDIRECTXDEVICEDRIVERSETUP)( HWND, LPSTR, LPSTR, LPSTR, DWORD ); 66 67 #ifdef __cplusplus 68 }; 69 #endif 70 71 #endif