DSETUP.H 2.8 KB

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