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.

152 lines
4.6 KiB

  1. ;; Copyright (c) Microsoft Corporation 1998-2000. All rights reserved.
  2. [Version]
  3. Signature="$CHICAGO$"
  4. Class=MEDIA
  5. ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
  6. provider=%MSFT%
  7. DriverVer =06/16/1999,5.00.2062.1
  8. [Manufacturer]
  9. %DDKMfgName%=Microsoft
  10. [DefaultInstall]
  11. AddReg = WDM_DDKSYNTH.DeviceRegistration
  12. CopyFiles = Default.CopyFiles
  13. [Default.CopyFiles]
  14. ddksynth.inf
  15. ;; Excluding drivers from the "Add New Hardware" list.
  16. [ControlFlags]
  17. ExcludeFromSelect = *
  18. ;;
  19. ;;**** GUIDGen your own and place it here. Also put it ****
  20. ;;**** below in WDM_DDKSYNTH.DeviceId, and in private.h ****
  21. ;;
  22. [Microsoft]
  23. %WDM_DDKSYNTH.DeviceDesc% = WDM_DDKSYNTH, SW\{820DC38A-1F81-11d3-A82E-0060083316C1}
  24. ;You must specify which platform is supported by each SourceDisksNames section
  25. ;Valid platform identifiers include .x86, .ia64, .alpha, .axp64
  26. [SourceDisksNames.x86]
  27. 222=%DiskDescription%,,,
  28. ;You must also specify which platform is supported by each SourceDisksFiles section
  29. ;Valid platform identifiers include .x86, .ia64, .alpha, .axp64
  30. [SourceDisksFiles.x86]
  31. ddksynth.sys=222
  32. ;;ddksynth.inf=222
  33. ;; Destination Directory List
  34. [DestinationDirs]
  35. WDM_DDKSYNTH.CopyFiles = 10,system32\drivers ; %SystemRoot%\system32\drivers
  36. Default.CopyFiles = 10,inf
  37. [WDM_DDKSYNTH.CopyFiles]
  38. DDKSynth.sys
  39. ;;
  40. ;; DDKSynth swenum install
  41. ;;
  42. [WDM_DDKSYNTH.DeviceRegistration]
  43. HKLM,%RunOnce%,"WDM_DDKSYNTH0",,"rundll32.exe streamci.dll,StreamingDeviceSetup %WDM_DDKSYNTH.DeviceId%,%KSNAME_DDKSYNTH%,%KSCATEGORY_DATATRANSFORM%,%01%\ddksynth.inf,WDM_DDKSYNTH.Interface.Install"
  44. HKLM,%RunOnce%,"WDM_DDKSYNTH1",,"rundll32.exe /N streamci.dll,StreamingDeviceSetup %WDM_DDKSYNTH.DeviceId%,%KSNAME_DDKSYNTH%,%KSCATEGORY_SYNTHESIZER%,%01%\ddksynth.inf,WDM_DDKSYNTH.Interface.Install"
  45. HKLM,%RunOnce%,"WDM_DDKSYNTH2",,"rundll32.exe /N streamci.dll,StreamingDeviceSetup %WDM_DDKSYNTH.DeviceId%,%KSNAME_DDKSYNTH%,%KSCATEGORY_AUDIO%,%01%\ddksynth.inf,WDM_DDKSYNTH.Interface.Install"
  46. HKLM,%MediaCategories%\%WDM_DDKSYNTH.GUID%,Name,,%WDM_DDKSYNTH.Pin%
  47. HKLM,%MediaCategories%\%WDM_DDKSYNTH.GUID%,Display,1,00,00,00,00
  48. [WDM_DDKSYNTH.Interface.Install]
  49. AddReg=WDM_DDKSYNTH.Interface.AddReg
  50. [WDM_DDKSYNTH.Interface.AddReg]
  51. HKR,,CLSID,,%Proxy.CLSID%
  52. HKR,,FriendlyName,,%WDM_DDKSYNTH.FriendlyName%
  53. ;;**************** 9x Specific ****************
  54. ;;
  55. ;; DDKSynth Install
  56. ;;
  57. [WDM_DDKSYNTH]
  58. ;;AlsoInstall=KS.Registration(ks.inf), WDM.AddReg.Install(wdmaudio.inf)
  59. AlsoInstall=KS.Registration(ks.inf)
  60. CopyFiles = WDM_DDKSYNTH.CopyFiles
  61. AddReg=WDM_DDKSYNTH.AddReg
  62. [WDM_DDKSYNTH.AddReg]
  63. HKR,,DevLoader,,*NTKERN
  64. HKR,,NTMPDriver,,ddksynth.sys
  65. [WDM_DDKSYNTH.Services]
  66. AddService = DDKSynth, 0x00000002, DDKSynth_Service_Inst
  67. [DDKSynth_Service_Inst]
  68. DisplayName = %WDM_DDKSYNTH.SvcDesc%
  69. ServiceType = 1 ; SERVICE_KERNEL_DRIVER
  70. StartType = 3 ; SERVICE_DEMAND_START
  71. ErrorControl = 1 ; SERVICE_ERROR_NORMAL
  72. ServiceBinary = %10%\system32\drivers\DDKSynth.sys
  73. ;;**************** NT Specific ****************
  74. ;;
  75. ;; DDKSynth Install
  76. ;;
  77. [WDM_DDKSYNTH.NT]
  78. Include=ks.inf, wdmaudio.inf
  79. Needs=KS.Registration, WDMAUDIO.Registration
  80. CopyFiles = WDM_DDKSYNTH.CopyFiles
  81. AddReg=WDM_DDKSYNTH.DeviceRegistration
  82. [WDM_DDKSYNTH.NT.Services]
  83. AddService = DDKSynth, 0x00000002, DDKSynth_Service_Inst
  84. [Strings]
  85. MSFT="Microsoft"
  86. DDKMfgName="DDK Sample Inc."
  87. DiskDescription="DDK Sample"
  88. RunOnce = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce"
  89. Proxy.CLSID = "{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
  90. KSNAME_Filter = "{9B365890-165F-11D0-A195-0020AFD156E4}"
  91. KSNAME_DDKSYNTH = "DDKSynth"
  92. KSCATEGORY_DATATRANSFORM = "{2EB07EA0-7E70-11D0-A5D6-28DB04C10000}"
  93. KSCATEGORY_SYNTHESIZER = "{DFF220F3-F70F-11D0-B917-00A0C9223196}"
  94. KSCATEGORY_AUDIO = "{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
  95. ;Non-localized strings
  96. MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"
  97. ;;
  98. ;;Name shows in mmsys.cpl if your synth is KSDATAFORMAT_SUBTYPE_MIDI
  99. ;;(KSCATEGORY_WDMAUD_USE_PIN_NAME forces this, otherwise name would
  100. ;;be the same as the waveOut device name)
  101. ;;
  102. WDM_DDKSYNTH.Pin="Microsoft DDK DLS Synth"
  103. ;;
  104. ;;**** GUIDGen your own and place it here. Also put it ****
  105. ;;**** above in WDM_DDKSYNTH.DeviceDesc and in private.h ****
  106. ;;
  107. WDM_DDKSYNTH.DeviceId = "{820DC38A-1F81-11d3-A82E-0060083316C1}"
  108. ;;
  109. ;;**** GUIDGen your own. Place it here and in private.h ****
  110. ;;
  111. WDM_DDKSYNTH.GUID = "{D2D37597-A312-434C-A2DD-2B4C32E6658A}"
  112. WDM_DDKSYNTH.DeviceDesc = " Ha1 Microsoft DDK Synthesizer"
  113. WDM_DDKSYNTH.FriendlyName = " Friendly Name - Microsoft DDK Synthesizer"
  114. WDM_DDKSYNTH.SvcDesc = " Ha3 Microsoft DDK Synthesizer"