Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

139 lines
4.6 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 2000
  6. //
  7. // File: direct.idl
  8. //
  9. //--------------------------------------------------------------------------
  10. #define VB_ONLY 1
  11. //
  12. // from windef.h
  13. #define MAX_PATH 256
  14. //
  15. // from mmsystem.h
  16. //
  17. #define MAXPNAMELEN 32 /* max product name length (including NULL) */
  18. #define MAX_JOYSTICKOEMVXDNAME 260 /* max oem vxd name length (including NULL) */
  19. #ifdef VB_ONLY
  20. #define _dxj_DirectX8 DirectX8
  21. #define I_dxj_DirectX8 IDirectX8
  22. #define I_dxj_Direct3D8 Direct3D8
  23. #else
  24. #define I_dxj_Direct3D8 IUnknown
  25. #endif
  26. #include "ocidl.idl"
  27. //
  28. // Base types
  29. //
  30. import "wtypes.idl";
  31. [
  32. uuid(E1211242-8E94-11d1-8808-00C04FC2C603),
  33. version(1.0),
  34. helpstring("DirectX 8 for Visual Basic Type Library"),
  35. helpfile ("directx8_vb.chm")
  36. ]
  37. library DxVBLibA
  38. {
  39. #include "common.idl"
  40. #include "d3di.idl" //D3D8
  41. #include "dmi.idl" //DMUSIC DSOUND
  42. #include "dii.idl" //DINPUT
  43. #include "dpi.idl" //DPLAY DPLAYVOICE
  44. #include "d3dxmath.idl" //D3DXMATH
  45. #include "d3dhelp.idl" //D3DHELPER FUNC
  46. #include "dxf.idl" //XOF FILE SUPPORT
  47. [
  48. object,
  49. uuid(E7FF1301-96A5-11d3-AC85-00C04FC2C602),
  50. helpstring("DirectX8 root object functions"),
  51. pointer_default(unique),
  52. helpcontext(86001)
  53. ]
  54. interface I_dxj_DirectX8 : IUnknown
  55. {
  56. import "oaidl.idl";
  57. [helpcontext(86020)] HRESULT DirectSoundCreate([in] BSTR guid, [out,retval] I_dxj_DirectSound **ret);
  58. [helpcontext(86019)] HRESULT DirectSoundCaptureCreate([in] BSTR guid, [out,retval] I_dxj_DirectSoundCapture **ret);
  59. [helpcontext(86023)] HRESULT GetDSEnum([out,retval] I_dxj_DSEnum **retVal);
  60. [helpcontext(86022)] HRESULT GetDSCaptureEnum([out,retval] I_dxj_DSEnum **retVal);
  61. [helpcontext(87022)] HRESULT DirectInputCreate([out,retval]I_dxj_DirectInput8 **ret);
  62. [helpcontext(86008)] HRESULT DirectMusicLoaderCreate([out,retval] I_dxj_DirectMusicLoader **ret);
  63. [helpcontext(86007)] HRESULT DirectMusicComposerCreate([out,retval] I_dxj_DirectMusicComposer **ret);
  64. [helpcontext(86009)] HRESULT DirectMusicPerformanceCreate([out,retval] I_dxj_DirectMusicPerformance **ret);
  65. #ifdef _WIN64
  66. [helpcontext(86025)] HRESULT CreateEvent([in] I_dxj_DirectXEvent8 *event,[out,retval] HANDLE *h);
  67. [helpcontext(86024)] HRESULT SetEvent([in] HANDLE eventId);
  68. [helpcontext(86004)] HRESULT DestroyEvent([in] HANDLE eventId);
  69. #else
  70. [helpcontext(86025)] HRESULT CreateEvent([in] I_dxj_DirectXEvent8 *event,[out,retval] LONG *h);
  71. [helpcontext(86024)] HRESULT SetEvent([in] LONG eventId);
  72. [helpcontext(86004)] HRESULT DestroyEvent([in] LONG eventId);
  73. #endif
  74. //needs to be added to master help ids
  75. [helpcontext(86003)] HRESULT CreateNewGuid([out,retval] BSTR *retGuid);
  76. [helpcontext(86016)] HRESULT DirectPlayVoiceClientCreate([out,retval] I_dxj_DirectPlayVoiceClient **ret);
  77. [helpcontext(86017)] HRESULT DirectPlayVoiceServerCreate([out,retval] I_dxj_DirectPlayVoiceServer **ret);
  78. [helpcontext(86018)] HRESULT DirectPlayVoiceTestCreate([out,retval] I_dxj_DirectPlayVoiceSetup **ret);
  79. [helpcontext(86601)] HRESULT DirectXFileCreate([out,retval] I_dxj_DirectXFile **ret);
  80. [helpcontext(86014)] HRESULT DirectPlayPeerCreate([out,retval] I_dxj_DirectPlayPeer **ret);
  81. [helpcontext(86015)] HRESULT DirectPlayServerCreate([out,retval] I_dxj_DirectPlayServer **ret);
  82. [helpcontext(86011)] HRESULT DirectPlayClientCreate([out,retval] I_dxj_DirectPlayClient **ret);
  83. [helpcontext(86010)] HRESULT DirectPlayAddressCreate([out,retval] I_dxj_DirectPlayAddress **ret);
  84. [helpcontext(86005)] HRESULT Direct3DCreate([out,retval] I_dxj_Direct3D8 **ret);
  85. [helpcontext(86013)] HRESULT DirectPlayLobbyClientCreate([out,retval] I_dxj_DirectPlayLobbyClient **ret);
  86. [helpcontext(86012)] HRESULT DirectPlayLobbiedApplicationCreate([out,retval] I_dxj_DirectPlayLobbiedApplication **ret);
  87. };
  88. ///////////////////////////////////////////////////////////////////////////
  89. importlib("stdole2.tlb");
  90. [
  91. uuid(E7FF1300-96A5-11d3-AC85-00C04FC2C602),
  92. helpstring("DirectX8"),
  93. helpcontext(319800)
  94. ]
  95. coclass _dxj_DirectX8 {
  96. [default] interface I_dxj_DirectX8;
  97. };
  98. };