home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / LordLucifer / win32asm / files / TasmD3DRMdemo.ZIP / tdx61inc.ZIP / tdsetup.inc < prev    next >
Encoding:
Text File  |  1999-08-10  |  5.8 KB  |  141 lines

  1. ; tdsetup.inc  (c) Minde  06/08/99 montana@is.lt
  2. ; Content:  TASM DirectSetup include file ver. 1.2
  3. ; converted from dsetup.h, DX ver. 6.1
  4. ;
  5. ;  Feel free to use or distribute the package, part or whole, for any
  6. ; non-commercial use preferably crediting me.
  7. ;  Also feel free to contact me at the above address if you experience any
  8. ; problems or notice any omissions.
  9. `
  10. ; API
  11. DirectXSetup                  = DirectXSetupA
  12. DirectXDeviceDriverSetup      = DirectXDeviceDriverSetupA
  13. DirectXRegisterApplication    = DirectXRegisterApplicationA
  14.  
  15. DirectXSetupA                   PROCDESC STDCALL :DWORD, :DWORD, :DWORD
  16. DirectXDeviceDriverSetupA       PROCDESC STDCALL :DWORD, :DWORD, :DWORD, DWORD
  17. DirectXRegisterApplicationA     PROCDESC STDCALL :DWORD, :DWORD
  18. DirectXSetupGetVersion          PROCDESC STDCALL :DWORD, :DWORD
  19. DirectXUnRegisterApplication    PROCDESC STDCALL :DWORD, :DWORD
  20. DirectXSetupCallback            PROCDESC STDCALL :DWORD
  21. DirectXSetupCallbackFunction    PROCDESC STDCALL :DWORD, :DWORD, :DWORD, :DWORD, :DWORD
  22.  
  23.  
  24.  
  25. DIRECTXREGISTERAPPA STRUCT
  26. directxregisterappa_dwSize                  DD ?
  27. directxregisterappa_dwFlags                 DD ?
  28. directxregisterappa_lpszApplicationName     DD ?
  29. directxregisterappa_lpGUID                  DD ?
  30. directxregisterappa_lpszFilename            DD ?
  31. directxregisterappa_lpszCommandLine         DD ?
  32. directxregisterappa_lpszPath                DD ?
  33. directxregisterappa_lpszCurrentDirectory    DD ?
  34. DIRECTXREGISTERAPPA ENDS
  35.  
  36.  
  37. DSETUP_CB_UPGRADEINFO struct ; NOT MODIFIED...
  38. UpgradeFlags    DD ?
  39. DSETUP_CB_UPGRADEINFO ends
  40.  
  41. DSETUP_CB_FILECOPYERROR struct
  42. dwError         DD ?
  43. DSETUP_CB_FILECOPYERROR ends
  44.  
  45.  
  46.  
  47. ; DSETUP Error Codes, must remain compatible with previous setup.
  48. DSETUPERR_SUCCESS_RESTART       = 1
  49. DSETUPERR_SUCCESS               = 0
  50. DSETUPERR_BADWINDOWSVERSION     = -1
  51. DSETUPERR_SOURCEFILENOTFOUND    = -2
  52. DSETUPERR_BADSOURCESIZE         = -3
  53. DSETUPERR_BADSOURCETIME         = -4
  54. DSETUPERR_NOCOPY                = -5
  55. DSETUPERR_OUTOFDISKSPACE        = -6
  56. DSETUPERR_CANTFINDINF           = -7
  57. DSETUPERR_CANTFINDDIR           = -8
  58. DSETUPERR_INTERNAL              = -9
  59. ;DSETUPERR_NTWITHNO3D           = -10  obsolete, see docs
  60. DSETUPERR_UNKNOWNOS             = -11
  61. DSETUPERR_USERHITCANCEL         = -12
  62. DSETUPERR_NOTPREINSTALLEDONNT   = -13
  63.  
  64.  
  65. ; DSETUP flags. DirectX 5.0 apps should use these flags only.
  66. DSETUP_DDRAWDRV     = 000000008h ; install DirectDraw Drivers
  67. DSETUP_DSOUNDDRV    = 000000010h ; install DirectSound Drivers
  68. DSETUP_DXCORE       = 000010000h ; install DirectX runtime
  69. DSETUP_DIRECTX = DSETUP_DXCORE or DSETUP_DDRAWDRV or DSETUP_DSOUNDDRV;
  70. DSETUP_TESTINSTALL  = 000020000 ; ust test install, don't do anything
  71.  
  72. ; String Constants
  73. MAX_INFLINE     = (16*1024)
  74. MAX_DESCRIPTION     = 256
  75.  
  76.  
  77. ; These OBSOLETE flags are here for compatibility with pre-DX5 apps only.
  78. ; They are present to allow DX3 apps to be recompiled with DX5 and still work.
  79. ; DO NOT USE THEM for DX5. They will go away in future DX releases.
  80.  
  81. DSETUP_DDRAW            = 000000001h ; install DirectDraw
  82. DSETUP_DSOUND           = 000000002h ; install DirectSound
  83. DSETUP_DPLAY            = 000000004h ; install DirectPlay
  84. DSETUP_DDRAWDRV         = 000000008h ; install DirectDraw Drivers
  85. DSETUP_DSOUNDDRV        = 000000010h ; install DirectSound Drivers
  86. DSETUP_DPLAYSP          = 000000020h ; install DirectPlay Providers
  87. DSETUP_DVIDEO           = 000000040h ; install DirectVideo
  88. DSETUP_D3D              = 000000200h ; install Direct3D
  89. ; This flag is obsolete.
  90. ; For NT, we now return either 0 for pre installed or
  91. ; DSETUPERR_NOTPREINSTALLEDONNT which implies this version of DirectX
  92. ; is not installed on this machine.
  93. ; DSETUP_REQUIRESD3D    = 000000400h + DSETUP_D3D ; install Direct3D, pop up dialog box on NT, if no D3D present
  94. DSETUP_DINPUT       = 000000800h ; install DirectInput
  95. DSETUP_DIRECTXSETUP = 000001000h ; install DirectXSetup DLL's
  96. DSETUP_PROMPTFORDRIVERS = 010000000h ; prompt when replacing display/audio drivers
  97. DSETUP_RESTOREDRIVERS   = 020000000h ; restore display/audio drivers
  98. DSETUP_DIRECTX      = DSETUP_D3D+DSETUP_DDRAW+DSETUP_DSOUND+DSETUP_DPLAY+ \
  99.         DSETUP_DINPUT+DSETUP_DDRAWDRV+DSETUP_DSOUNDDRV+DSETUP_DPLAYSP
  100.  
  101.  
  102. ;******************************************************************
  103. ; DirectX Setup Callback mechanism
  104. ;******************************************************************
  105.  
  106. ; DSETUP Message Info Codes, passed to callback as Reason parameter.
  107.   DSETUP_CB_MSG_NOMESSAGE                 = 0;
  108.   DSETUP_CB_MSG_CANTINSTALL_UNKNOWNOS     = 1;
  109.   DSETUP_CB_MSG_CANTINSTALL_NT            = 2;
  110.   DSETUP_CB_MSG_CANTINSTALL_BETA          = 3;
  111.   DSETUP_CB_MSG_CANTINSTALL_NOTWIN32      = 4;
  112.   DSETUP_CB_MSG_CANTINSTALL_WRONGLANGUAGE = 5;
  113.   DSETUP_CB_MSG_CANTINSTALL_WRONGPLATFORM = 6;
  114.   DSETUP_CB_MSG_PREINSTALL_NT             = 7;
  115.   DSETUP_CB_MSG_NOTPREINSTALLEDONNT       = 8;
  116.   DSETUP_CB_MSG_SETUP_INIT_FAILED         = 9;
  117.   DSETUP_CB_MSG_INTERNAL_ERROR            = 10;
  118.   DSETUP_CB_MSG_CHECK_DRIVER_UPGRADE      = 11;
  119.   DSETUP_CB_MSG_OUTOFDISKSPACE            = 12;
  120.   DSETUP_CB_MSG_BEGIN_INSTALL             = 13;
  121.   DSETUP_CB_MSG_BEGIN_INSTALL_RUNTIME     = 14;
  122.   DSETUP_CB_MSG_BEGIN_INSTALL_DRIVERS     = 15;
  123.   DSETUP_CB_MSG_BEGIN_RESTORE_DRIVERS     = 16;
  124.   DSETUP_CB_MSG_FILECOPYERROR             = 17;
  125.  
  126.  
  127.   DSETUP_CB_UPGRADE_TYPE_MASK      = 0000Fh;
  128.   DSETUP_CB_UPGRADE_KEEP           = 00001h;
  129.   DSETUP_CB_UPGRADE_SAFE           = 00002h;
  130.   DSETUP_CB_UPGRADE_FORCE          = 00004h;
  131.   DSETUP_CB_UPGRADE_UNKNOWN        = 00008h;
  132.   DSETUP_CB_UPGRADE_HASWARNINGS    = 00100h;
  133.   DSETUP_CB_UPGRADE_CANTBACKUP     = 00200h;
  134.   DSETUP_CB_UPGRADE_DEVICE_ACTIVE  = 00800h;
  135.   DSETUP_CB_UPGRADE_DEVICE_DISPLAY = 01000h;
  136.   DSETUP_CB_UPGRADE_DEVICE_MEDIA   = 02000h;
  137.  
  138.  
  139.  
  140. ;end of file
  141.