[Version]
Signature="$WINDOWS NT$"
ClassGuid={4D36E96C-E325-11CE-BFC1-08002BE10318}
Class=MEDIA
Provider=%MSFT%

[SourceDisksNames]
1 = %DiskId%

[SourceDisksFiles]
cmsb32.dll = 1
cmsb.sys = 1
joyport.dll = 1
joyport.sys = 1
cmedia32.dll  = 1
cmedia.sys  = 1
mpu401.dll  = 1
mpu401.sys  = 1

[DestinationDirs]
cmsbdll.CopyList = 11 ; DIRID_SYSTEM
cmsbsys.CopyList = 12 ; DIRID_DRIVERS
joyportdll.CopyList = 11 ; DIRID_SYSTEM
joyportsys.CopyList = 12 ; DIRID_DRIVERS
cmediadll.CopyList  = 11 ; DIRID_SYSTEM
cmediasys.CopyList  = 12 ; DIRID_DRIVERS
mpu401dll.CopyList  = 11 ; DIRID_SYSTEM
mpu401sys.CopyList  = 12 ; DIRID_DRIVERS

[Manufacturer]
%CMIMfgName%=CMedia

[CMedia]
;
; NOTE:  We omit hardware IDs for each of these devices, so that the user will
;        be able to supply an OEM-supplied driver with fuller functionality at
;        the "Found New Hardware" popup.
;
%*CMI0001.DeviceDesc%=CMedia_WSS_Device,ISAPNP\CMI0001_DEV0000,*@@@0001
%*MPU0401.DeviceDesc%=CMedia_MPU_Device,ISAPNP\CMI0001_DEV0001,*@H@0001
%*PNPB02F.DeviceDesc%=MSJSTICK,ISAPNP\CMI0001_DEV0002,*@P@0001
%*CMI0004.DeviceDesc%=CMedia_SB16_Device,ISAPNP\CMI0001_DEV0003,*@X@0001

[CMedia_WSS_Device.NT]
CopyFiles=cmediadll.CopyList,cmediasys.CopyList
AddReg=CMI0001.AddReg, WSS.AddReg
Reboot

[CMedia_SB16_Device.NT]
CopyFiles=cmsbdll.CopyList,cmsbsys.CopyList
AddReg=CMI0004.AddReg, SB16.AddReg
;AddReg=WAVE.AddReg, CMI0001.AddReg, SB16.AddReg
Reboot

[CMedia_MPU_Device.NT]
CopyFiles=mpu401dll.CopyList,mpu401sys.CopyList
AddReg=mpu401.AddReg

[MSJSTICK.NT]
CopyFiles=joyportdll.CopyList,joyportsys.CopyList
AddReg=MSJSTICK.AddReg
Reboot

[CMedia_WSS_Device.NT.Services]
AddService = cmedia, 0x00000002, cmedia_Service_Inst

[CMedia_SB16_Device.NT.Services]
AddService = cmsb, 0x00000002, cmsb_Service_Inst

[CMedia_MPU_Device.NT.Services]
AddService = mpu401, 0x00000002, mpu401_Service_Inst

[MSJSTICK.NT.Services]
AddService = joyport, 0x00000002, joyport_Service_Inst

[cmedia_Service_Inst]
DisplayName    = %cmedia.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\cmedia.sys
LoadOrderGroup = Base

[cmsb_Service_Inst]
DisplayName    = %cmsb.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\cmsb.sys
LoadOrderGroup = Base

[mpu401_Service_Inst]
DisplayName    = %mpu401.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\mpu401.sys
LoadOrderGroup = Base

[joyport_Service_Inst]
DisplayName    = %joyport.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 1                  ; SERVICE_SYSTEM_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\joyport.sys
LoadOrderGroup = Base

[cmediadll.CopyList]
cmedia32.dll

[cmediasys.CopyList]
cmedia.sys

[cmsbdll.CopyList]
cmsb32.dll

[cmsbsys.CopyList]
cmsb.sys

[mpu401dll.CopyList]
mpu401.dll

[mpu401sys.CopyList]
mpu401.sys

[joyportdll.CopyList]
joyport.dll

[joyportsys.CopyList]
joyport.sys

[CMI0001.AddReg]
HKR,Drivers\wave\cmedia32.dll,Description,,%*CMI0001.DeviceDesc%
HKR,Drivers\midi\cmedia32.dll,Description,,%V_INTERNAL%
HKR,Drivers\mixer\cmedia32.dll,Description,,%*CMI0001.DeviceDesc%
HKR,Drivers\aux\cmedia32.dll,Description,,%*CMI0001.DeviceDesc%

[WSS.AddReg]
HKR,Drivers\wave\cmedia32.dll,Driver,,cmedia32.dll
HKR,Drivers\midi\cmedia32.dll,Driver,,cmedia32.dll
HKR,Drivers\mixer\cmedia32.dll,Driver,,cmedia32.dll
HKR,Drivers\aux\cmedia32.dll,Driver,,cmedia32.dll
HKR,Drivers,SubClasses,,"wave,midi,aux,mixer"

[CMI0004.AddReg]
HKR,Drivers\wave\cmsb32.dll,Description,,%*CMI0004.DeviceDesc%

[SB16.AddReg]
HKR,Drivers\wave\cmsb32.dll,Driver,,cmsb32.dll
HKR,Drivers,SubClasses,,"wave"

[MSJSTICK.AddReg]
HKR,Drivers\jport\joyport.dll,Description,,%*PNPB02F.DeviceDesc%
HKR,Drivers\jport\joyport.dll,Driver,,joyport.dll
HKR,Drivers,SubClasses,,"jport"

[mpu401.AddReg]
HKR,Drivers\midi\mpu401.dll,Description,,%*MPU0401.DeviceDesc%
HKR,Drivers\midi\mpu401.dll,Driver,,mpu401.dll
HKR,Drivers,SubClasses,,"midi"

;
; Localizable text.
;
[Strings]
MSFT = "Microsoft"
MediaClassName = "Sound, video and game controllers"
CMIMfgName = "C-Media"
DiskId = "CMI8330 Drivers Disk"

*CMI0001.DeviceDesc = "C-Media Windows Sound System (WSS) Device"
*MPU0401.DeviceDesc = "MPU-401 Compatable Driver"
*PNPB02F.DeviceDesc = "Microsoft Joystick Port Enabler"
*CMI0004.DeviceDesc = "C-Media SB16 Device"
V_INTERNAL = "OPL3 FM Synthesizer"

cmedia.SvcDesc = "C-Media WSS Driver"
cmsb.SvcDesc = "C-Media SB16 Driver"
mpu401.SvcDesc = "MPU-401 Compatible Driver"
joyport.SvcDesc = "Microsoft Joystick Port Driver"
