home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / directx2 / sdk / inc / dsetup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-28  |  2.8 KB  |  67 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995-1996 Microsoft Corporation.  All Rights Reserved.
  4.  *
  5.  *  File:       dsetup.h
  6.  *  Content:    DirectXSetup, error codes and flags
  7.  ***************************************************************************/
  8.  
  9. #ifndef __DSETUP_H__
  10. #define __DSETUP_H__
  11.  
  12. #ifdef _WIN32
  13. #define COM_NO_WINDOWS_H
  14. #include <objbase.h>
  15. #else
  16. #define GUID void
  17. #endif
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22.  
  23. #define DSETUPERR_BADWINDOWSVERSION     -1
  24. #define DSETUPERR_SOURCEFILENOTFOUND    -2
  25. #define DSETUPERR_BADSOURCESIZE         -3
  26. #define DSETUPERR_BADSOURCETIME         -4
  27. #define DSETUPERR_NOCOPY                -5
  28. #define DSETUPERR_OUTOFDISKSPACE        -6
  29. #define DSETUPERR_CANTFINDINF           -7
  30. #define DSETUPERR_CANTFINDDIR           -8
  31. #define DSETUPERR_INTERNAL              -9
  32. #define DSETUPERR_NTWITHNO3D            -10
  33.  
  34.  
  35. #define MAX_INFLINE             (16*1024)
  36. #define MAX_DESCRIPTION         256
  37.  
  38. #define DSETUP_DDRAW            0x00000001      /* install DirectDraw           */
  39. #define DSETUP_DSOUND           0x00000002      /* install DirectSound          */
  40. #define DSETUP_DPLAY            0x00000004      /* install DirectPlay           */
  41. #define DSETUP_DDRAWDRV         0x00000008      /* install DirectDraw Drivers   */
  42. #define DSETUP_DSOUNDDRV        0x00000010      /* install DirectSound Drivers  */
  43. #define DSETUP_DPLAYSP          0x00000020      /* install DirectPlay Providers */
  44. #define DSETUP_DVIDEO           0x00000040      /* install DirectVideo          */
  45. #define DSETUP_REINSTALL        0x00000080      /* install DirectX even if existing components have the same version    */
  46. #define DSETUP_DRVINFONLY       0x00000100      /* install DirectX inf files but not drivers                            */
  47. #define DSETUP_D3D              0x00000200      /* install Direct3D                                                     */
  48. #define DSETUP_REQUIRESD3D      0x00000400 | DSETUP_D3D /* install Direct3D, pop up dialog box on NT, if no D3D present         */
  49.  
  50. #define DSETUP_DIRECTX          (DSETUP_D3D | DSETUP_DDRAW | DSETUP_DSOUND | DSETUP_DPLAY | DSETUP_DDRAWDRV | DSETUP_DSOUNDDRV | DSETUP_DPLAYSP)
  51.  
  52. int WINAPI DirectXSetup( HWND hwnd, LPSTR root_path, DWORD flags );
  53. int WINAPI DirectXDeviceDriverSetup( HWND hwnd, LPSTR driver_class, LPSTR inf_path, LPSTR driver_path, DWORD flags );
  54. int WINAPI DirectXSetupIsJapan( void );
  55. int WINAPI DirectXSetupIsJapanNec( void );
  56.  
  57. typedef int (WINAPI * LPDIRECTXSETUP)( HWND, LPSTR, DWORD );
  58. typedef int (WINAPI * LPDIRECTXDEVICEDRIVERSETUP)( HWND, LPSTR, LPSTR, LPSTR, DWORD );
  59. typedef int (WINAPI * LPDIRECTXSETUPISJAPAN)( void );
  60. typedef int (WINAPI * LPDIRECTXSETUPISJAPANNEC)( void );
  61.  
  62. #ifdef __cplusplus
  63. };
  64. #endif
  65.  
  66. #endif
  67.