[Version]
Signature   = "$WINDOWS NT$"
Class       = SoftwareComponent
ClassGuid   = {5c4c3332-344d-483c-8739-259e934c9cc8}
Provider    = %Realtek%
DriverVer   = 07/22/2019,1.0.0.189
CatalogFile = RealtekService.cat

[SourceDisksNames]
222 = %DiskId1%

[SourceDisksFiles]
RtkCfg64.dll=222
RtkApi64U.dll=222
RtkAudUService64.exe=222
RtDataProc64.dll=222
RtCOM64.dll=222

[DestinationDirs]
SfxFx.CopyList=11 ; %SystemRoot%\system32 
RtkSvc.CopyList=11 ; %SystemRoot%\system32 
RtkComDll.CopyList=11 ; %SystemRoot%\system32 

[SignatureAttributes]
RtDataProc64.dll=SignatureAttributes.PETrust
RtCOM64.dll=SignatureAttributes.PETrust

[SignatureAttributes.DRM]
DRMLevel=1300

[SignatureAttributes.PETrust]
PETrust=true

[Manufacturer]
%Realtek% = SrvComponents,NTamd64

[SrvComponents.NTamd64]
%Srv.ComponentDesc% = SrvComponent_Install,SWC\VEN_10EC&SID_0001

[SrvComponent_Install]
Include   = wdmaudio.inf
CopyFiles = SfxFx.CopyList, RtkSvc.CopyList, RtkComDll.CopyList
AddReg    = RtkComDll.AddReg

[SrvComponent_Install.Services]
AddService = ,2    ; no function driver
AddService = RtkAudioUniversalService, 0x00000800, Realtek_Service_Install

[Realtek_Service_Install]
Description   = "Realtek Audio Universal Service"
DisplayName   = "Realtek Audio Universal Service"
ServiceType   = 0x00000010
StartType     = 2
ErrorControl  = 1
ServiceBinary = """%%SystemRoot%%\System32\RtkAudUService64.exe"""

[SfxFx.CopyList]
RtkCfg64.dll
RtkApi64U.dll

[RtkSvc.CopyList]
RtkAudUService64.exe

[RtkComDll.CopyList]
RtDataProc64.dll
RtCOM64.dll

[RtkComDll.AddReg]
HKCR,CLSID\%RTK_CFG_CLSID%,,0,"RtkCfgApi Class"
HKCR,CLSID\%RTK_CFG_CLSID%,AppID,0,"{A11009A7-DC01-48F8-B6AA-C4613FC5CB15}"
HKCR,CLSID\%RTK_CFG_CLSID%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtkCfg64.dll
HKCR,CLSID\%RTK_CFG_CLSID%\InProcServer32,ThreadingModel,0,Both
HKCR,CLSID\%RTK_CFG_CLSID%\ProgID,,0,"RtkCfg.RtkCfgApi.1"
HKCR,CLSID\%RTK_CFG_CLSID%\TypeLib,,0,"%RTK_CFG_TYPELIB%"
HKCR,CLSID\%RTK_CFG_CLSID%\VersionIndependentProgID,,0,"RtkCfg.RtkCfgApi"

HKCR,CLSID\%RTK_CFG_TYPELIB%\1.0,,0,"RtkCfg 1.0 Type Library"
HKCR,CLSID\%RTK_CFG_TYPELIB%\1.0\0\win64,,0x00020000,%%SystemRoot%%\system32\RtkCfg64.dll
HKCR,CLSID\%RTK_CFG_TYPELIB%\1.0\FLAGS,,0,"0"
HKCR,CLSID\%RTK_CFG_TYPELIB%\1.0\HELPDIR,,0x00020000,%%SystemRoot%%\system32

HKCR,CLSID\%RTK_APOCAPS_API_CLSID%,,0,"RtApocapsApi Class"
HKCR,CLSID\%RTK_APOCAPS_API_CLSID%,AppID,0,%RTK_APO_API_APPID%
HKCR,CLSID\%RTK_APOCAPS_API_CLSID%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtkApi64U.dll
HKCR,CLSID\%RTK_APOCAPS_API_CLSID%\InProcServer32,ThreadingModel,0,Apartment
HKCR,CLSID\%RTK_APOCAPS_API_CLSID%\ProgID,,0,"RtkApoApi.RtApocapsApi.1"
HKCR,CLSID\%RTK_APOCAPS_API_CLSID%\TypeLib,,0,"%RTK_APO_API_TYPELIB%"
HKCR,CLSID\%RTK_APOCAPS_API_CLSID%\VersionIndependentProgID,,0,"RtkApoApi.RtApocapsApi"

HKCR,Interface\%RTK_IRtApocapsApi_CLSID%,,0,"IRtApocapsApi"
HKCR,Interface\%RTK_IRtApocapsApi_CLSID%\ProxyStubClsid32,,0,"{00020424-0000-0000-C000-000000000046}"
HKCR,Interface\%RTK_IRtApocapsApi_CLSID%\TypeLib,,0,%RTK_APO_API_TYPELIB%
HKCR,Interface\%RTK_IRtApocapsApi_CLSID%\TypeLib,Version,0,"1.0"

HKCR,CLSID\%RTK_BSS_API_CLSID%,,0,"RtkBssApi Class"
HKCR,CLSID\%RTK_BSS_API_CLSID%,AppID,0,%RTK_APO_API_APPID%
HKCR,CLSID\%RTK_BSS_API_CLSID%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtkApi64U.dll
HKCR,CLSID\%RTK_BSS_API_CLSID%\InProcServer32,ThreadingModel,0,Apartment
HKCR,CLSID\%RTK_BSS_API_CLSID%\ProgID,,0,"RtkApoApi.RtkBssApi.1"
HKCR,CLSID\%RTK_BSS_API_CLSID%\TypeLib,,0,"%RTK_APO_API_TYPELIB%"
HKCR,CLSID\%RTK_BSS_API_CLSID%\VersionIndependentProgID,,0,"RtkApoApi.RtkBssApi"

HKCR,Interface\%RTK_IRtkBssApi_CLSID%,,0,"IRtkBssApi"
HKCR,Interface\%RTK_IRtkBssApi_CLSID%\ProxyStubClsid32,,0,"{00020424-0000-0000-C000-000000000046}"
HKCR,Interface\%RTK_IRtkBssApi_CLSID%\TypeLib,,0,%RTK_APO_API_TYPELIB%
HKCR,Interface\%RTK_IRtkBssApi_CLSID%\TypeLib,Version,0,"1.0"

HKCR,Interface\%RTK_IRtkBssApi2_CLSID%,,0,"IRtkBssApi2"
HKCR,Interface\%RTK_IRtkBssApi2_CLSID%\ProxyStubClsid32,,0,"{00020424-0000-0000-C000-000000000046}"
HKCR,Interface\%RTK_IRtkBssApi2_CLSID%\TypeLib,,0,%RTK_APO_API_TYPELIB%
HKCR,Interface\%RTK_IRtkBssApi2_CLSID%\TypeLib,Version,0,"1.0"

HKCR,Interface\%RTK_IRtkBssApi3_CLSID%,,0,"IRtkBssApi3"
HKCR,Interface\%RTK_IRtkBssApi3_CLSID%\ProxyStubClsid32,,0,"{00020424-0000-0000-C000-000000000046}"
HKCR,Interface\%RTK_IRtkBssApi3_CLSID%\TypeLib,,0,%RTK_APO_API_TYPELIB%
HKCR,Interface\%RTK_IRtkBssApi3_CLSID%\TypeLib,Version,0,"1.0"

HKCR,CLSID\%RTK_SA_API_CLSID%,,0,"SAApi Class"
HKCR,CLSID\%RTK_SA_API_CLSID%,AppID,0,%RTK_APO_API_APPID%
HKCR,CLSID\%RTK_SA_API_CLSID%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtkApi64U.dll
HKCR,CLSID\%RTK_SA_API_CLSID%\InProcServer32,ThreadingModel,0,Apartment
HKCR,CLSID\%RTK_SA_API_CLSID%\ProgID,,0,"RtkApoApi.SAApi.1"
HKCR,CLSID\%RTK_SA_API_CLSID%\TypeLib,,0,"%RTK_APO_API_TYPELIB%"
HKCR,CLSID\%RTK_SA_API_CLSID%\VersionIndependentProgID,,0,"RtkApoApi.SAApi"

HKCR,CLSID\%RTK_APO_INFO_LIST_CLSID%,,0,"RtkApoInfoListApi Class"
HKCR,CLSID\%RTK_APO_INFO_LIST_CLSID%,AppID,0,%RTK_APO_API_APPID%
HKCR,CLSID\%RTK_APO_INFO_LIST_CLSID%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtkApi64U.dll
HKCR,CLSID\%RTK_APO_INFO_LIST_CLSID%\InProcServer32,ThreadingModel,0,Apartment
HKCR,CLSID\%RTK_APO_INFO_LIST_CLSID%\ProgID,,0,"RtkApoApi.RtkApoInfoListApi.1"
HKCR,CLSID\%RTK_APO_INFO_LIST_CLSID%\TypeLib,,0,"%RTK_APO_API_TYPELIB%"
HKCR,CLSID\%RTK_APO_INFO_LIST_CLSID%\VersionIndependentProgID,,0,"RtkApoApi.RtkApoInfoListApi"

HKCR,CLSID\%RTK_EFFECT_SETTING_CLSID%,,0,"RtkEffectSetting Class"
HKCR,CLSID\%RTK_EFFECT_SETTING_CLSID%,AppID,0,%RTK_APO_API_APPID%
HKCR,CLSID\%RTK_EFFECT_SETTING_CLSID%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtkApi64U.dll
HKCR,CLSID\%RTK_EFFECT_SETTING_CLSID%\InProcServer32,ThreadingModel,0,Apartment
HKCR,CLSID\%RTK_EFFECT_SETTING_CLSID%\ProgID,,0,"RtkApoApi.RtkEffectSetting.1"
HKCR,CLSID\%RTK_EFFECT_SETTING_CLSID%\TypeLib,,0,"%RTK_APO_API_TYPELIB%"
HKCR,CLSID\%RTK_EFFECT_SETTING_CLSID%\VersionIndependentProgID,,0,"RtkApoApi.RtkEffectSetting"

HKCR,TypeLib\%RTK_APO_API_TYPELIB%\1.0,,0,"RtkApoApi 1.0 Type Library"
HKCR,TypeLib\%RTK_APO_API_TYPELIB%\1.0\0\win64,,0x00020000,%%SystemRoot%%\system32\rtkapi64u.dll
HKCR,TypeLib\%RTK_APO_API_TYPELIB%\1.0\FLAGS,,0,"0"
HKCR,TypeLib\%RTK_APO_API_TYPELIB%\1.0\HELPDIR,,0x00020000,%%SystemRoot%%\system32

HKCR,%RTDP_CID1_PATH%,,0,"RtNuanceProc Class"
HKCR,%RTDP_CID1_PATH%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtDataProc64.dll
HKCR,%RTDP_CID1_PATH%\InProcServer32,ThreadingModel,0,Both
HKCR,%RTDP_CID2_PATH%,,0,"RtDataProc Class"
HKCR,%RTDP_CID2_PATH%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtDataProc64.dll
HKCR,%RTDP_CID2_PATH%\InProcServer32,ThreadingModel,0,Both

HKCR,CLSID\%RTCOMDLL_CLSID%,,0,"RTLCSSAPI Class"
HKCR,CLSID\%RTCOMDLL_CLSID%,AppID,0,"{D9CF0A3B-E47C-41BC-9A88-9BEC290C5D93}"
HKCR,CLSID\%RTCOMDLL_CLSID%\ProgID,,0,"RTCOMDLL.RTLCSSAPI.1"
HKCR,CLSID\%RTCOMDLL_CLSID%\VersionIndependentProgID,,0,"RTCOMDLL.RTLCSSAPI"
HKCR,CLSID\%RTCOMDLL_CLSID%\Programmable
HKCR,CLSID\%RTCOMDLL_CLSID%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtCOM64.dll
HKCR,CLSID\%RTCOMDLL_CLSID%\InProcServer32,ThreadingModel,0,Apartment

HKCR,CLSID\%RTCOMDLL_CLSID2%,,0,"SONY Class"
HKCR,CLSID\%RTCOMDLL_CLSID2%,AppID,0,"{D9CF0A3B-E47C-41BC-9A88-9BEC290C5D93}"
HKCR,CLSID\%RTCOMDLL_CLSID2%\ProgID,,0,"RTCOMDLL.SONY.1"
HKCR,CLSID\%RTCOMDLL_CLSID2%\VersionIndependentProgID,,0,"RTCOMDLL.SONY"
HKCR,CLSID\%RTCOMDLL_CLSID2%\Programmable
HKCR,CLSID\%RTCOMDLL_CLSID2%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtCOM64.dll
HKCR,CLSID\%RTCOMDLL_CLSID2%\InProcServer32,ThreadingModel,0,Apartment

HKCR,CLSID\%RTCOMDLL_CLSID3%,,0,"PropSet Class"
HKCR,CLSID\%RTCOMDLL_CLSID3%,AppID,0,"{D9CF0A3B-E47C-41BC-9A88-9BEC290C5D93}"
HKCR,CLSID\%RTCOMDLL_CLSID3%\ProgID,,0,"RTCOMDLL.PropSet.1"
HKCR,CLSID\%RTCOMDLL_CLSID3%\VersionIndependentProgID,,0,"RTCOMDLL.PropSet"
HKCR,CLSID\%RTCOMDLL_CLSID3%\Programmable
HKCR,CLSID\%RTCOMDLL_CLSID3%\TypeLib,,0,"%RTK_COM_TYPELIB%"
HKCR,CLSID\%RTCOMDLL_CLSID3%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtCOM64.dll
HKCR,CLSID\%RTCOMDLL_CLSID3%\InProcServer32,ThreadingModel,0,Both

HKCR,CLSID\%RTCOMDLL_CLSID4%,,0,"SRSPremiumSound Class"
HKCR,CLSID\%RTCOMDLL_CLSID4%,AppID,0,"{D9CF0A3B-E47C-41BC-9A88-9BEC290C5D93}"
HKCR,CLSID\%RTCOMDLL_CLSID4%\ProgID,,0,"RTCOMDLL.SRSPremiumSound.1"
HKCR,CLSID\%RTCOMDLL_CLSID4%\VersionIndependentProgID,,0,"RTCOMDLL.SRSPremiumSound"
HKCR,CLSID\%RTCOMDLL_CLSID4%\Programmable
HKCR,CLSID\%RTCOMDLL_CLSID4%\TypeLib,,0,"%RTK_COM_TYPELIB%"
HKCR,CLSID\%RTCOMDLL_CLSID4%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtCOM64.dll
HKCR,CLSID\%RTCOMDLL_CLSID4%\InProcServer32,ThreadingModel,0,Both

HKCR,CLSID\%RTCOMDLL_CLSID5%,,0,"ABIT Class"
HKCR,CLSID\%RTCOMDLL_CLSID5%,AppID,0,"{D9CF0A3B-E47C-41BC-9A88-9BEC290C5D93}"
HKCR,CLSID\%RTCOMDLL_CLSID5%\ProgID,,0,"ABIT.ABIT.1"
HKCR,CLSID\%RTCOMDLL_CLSID5%\VersionIndependentProgID,,0,"ABIT.ABIT"
HKCR,CLSID\%RTCOMDLL_CLSID5%\Programmable
HKCR,CLSID\%RTCOMDLL_CLSID5%\InProcServer32,,0x00020000,%%SystemRoot%%\System32\RtCOM64.dll
HKCR,CLSID\%RTCOMDLL_CLSID5%\InProcServer32,ThreadingModel,0,Apartment

HKCR,CLSID\%RTK_COM_TYPELIB%\1.0,,0,"RTCOMDLL 1.0 Type Library"
HKCR,CLSID\%RTK_COM_TYPELIB%\1.0\0\win32,,0x00020000,%%SystemRoot%%\system32\RtCOM64.dll
HKCR,CLSID\%RTK_COM_TYPELIB%\1.0\FLAGS,,0,"0"
HKCR,CLSID\%RTK_COM_TYPELIB%\1.0\HELPDIR,,0x00020000,%%SystemRoot%%\system32

HKCR,CLSID\%RtkAudUServiceCOMObject_CLSID%,,0,"RtkAudUServiceCOMObject Class"
HKCR,CLSID\%RtkAudUServiceCOMObject_CLSID%,AppID,0,"{E4F6A7E6-571B-4DCA-AD6F-9B9E59582001}"
HKCR,CLSID\%RtkAudUServiceCOMObject_CLSID%\LocalServer32,,0x00020000,%%SystemRoot%%\system32\RtkAudUService64.exe
HKCR,CLSID\%RtkAudUServiceCOMObject_CLSID%\LocalServer32,ThreadingModel,0,Apartment
HKCR,CLSID\%RtkAudUServiceCOMObject_CLSID%\ProgID,,0,"RtkAudUServiceCOMApi.RtkAudUServiceCOMApi.1"
HKCR,CLSID\%RtkAudUServiceCOMObject_CLSID%\Programmable
HKCR,CLSID\%RtkAudUServiceCOMObject_CLSID%\TypeLib,,0,"{71092E27-C34B-47D4-A961-8AD778F68191}"
HKCR,CLSID\%RtkAudUServiceCOMObject_CLSID%\VersionIndependentProgID,,0,"RtkAudUServiceCOMApi.RtkAudUServiceCOMApi"

HKCR,Interface\%IRtkAudUServiceCOMObject_CLSID%,,0,"IRtkAudUServiceCOMObject"
HKCR,Interface\%IRtkAudUServiceCOMObject_CLSID%\ProxyStubClsid32,,0,"{00020424-0000-0000-C000-000000000046}"
HKCR,Interface\%IRtkAudUServiceCOMObject_CLSID%\TypeLib,,0,"{71092E27-C34B-47D4-A961-8AD778F68191}"
HKCR,Interface\%IRtkAudUServiceCOMObject_CLSID%\TypeLib,Version,0,"1.0"

HKCR,Interface\%_IRtkAudUServiceCOMObjectEvents_CLSID%,,0,"_IRtkAudUServiceCOMObjectEvents"
HKCR,Interface\%_IRtkAudUServiceCOMObjectEvents_CLSID%\ProxyStubClsid32,,0,"{00020420-0000-0000-C000-000000000046}"
HKCR,Interface\%_IRtkAudUServiceCOMObjectEvents_CLSID%\TypeLib,,0,"{71092E27-C34B-47D4-A961-8AD778F68191}"
HKCR,Interface\%_IRtkAudUServiceCOMObjectEvents_CLSID%\TypeLib,Version,0,"1.0"

HKCR,Interface\%IRtkAudUServiceCOMNotificationClient_CLSID%,,0,"IRtkAudUServiceCOMNotificationClient"
HKCR,Interface\%IRtkAudUServiceCOMNotificationClient_CLSID%\ProxyStubClsid32,,0,"{00020424-0000-0000-C000-000000000046}"
HKCR,Interface\%IRtkAudUServiceCOMNotificationClient_CLSID%\TypeLib,,0,"{71092E27-C34B-47D4-A961-8AD778F68191}"
HKCR,Interface\%IRtkAudUServiceCOMNotificationClient_CLSID%\TypeLib,Version,0,"1.0"

HKCR,TypeLib\%RtkAudUServiceCOMServer_TYPELIB_CLSID%\1.0,,0,"RtkAudUServiceCOMServer 1.0 Type Library"
HKCR,TypeLib\%RtkAudUServiceCOMServer_TYPELIB_CLSID%\1.0\0\win64,,0x00020000,%%SystemRoot%%\system32\RtkAudUService64.exe
HKCR,TypeLib\%RtkAudUServiceCOMServer_TYPELIB_CLSID%\1.0\FLAGS,,0,"0"
HKCR,TypeLib\%RtkAudUServiceCOMServer_TYPELIB_CLSID%\1.0\HELPDIR,,0x00020000,%%SystemRoot%%\system32

[Strings]
Realtek           = "Realtek"
Srv.ComponentDesc = "Realtek Audio Universal Service"
DiskId1           = "Realtek Service Installation Disk"

RTK_CFG_CLSID = "{AF099A7C-45D2-4CE6-9327-EEAAB0395444}"
RTK_CFG_TYPELIB = "{28F69C2F-0073-4EDF-9AB9-97BB8C55C166}"

RTK_APO_API_APPID = "{08B039CA-84AA-40EA-8E9C-1D9537DC415B}"
RTK_APO_API_TYPELIB = "{B7DE8AC9-9CAD-4B18-A7CE-42F3362D2B97}"
RTK_APOCAPS_API_CLSID = "{93EC11E9-889B-458e-8DEE-B750C8AAC6C2}"
RTK_IRtApocapsApi_CLSID = "{17D8D369-3B98-452F-AD26-8CEE32ACAA17}"
RTK_BSS_API_CLSID = "{2438FE00-BD99-49AF-9E48-D3B03885FA8B}"
RTK_IRtkBssApi_CLSID = "{A60A9DD6-410A-49AC-9F43-9C6FD355E138}"
RTK_IRtkBssApi2_CLSID = "{A5564785-34A2-4A03-BEA9-0065E4DCFA5A}"
RTK_IRtkBssApi3_CLSID = "{FD5DA846-3248-4FF5-8C93-B10E6A2894B6}"
RTK_SA_API_CLSID = "{38361248-B055-4ea8-A373-940464FB318E}"
RTK_APO_INFO_LIST_CLSID = "{AA9642C4-CE9B-4564-A57E-AC5B8F3E7D77}"
RTK_EFFECT_SETTING_CLSID = "{C51A2350-6AB3-44A5-8B32-61A9DBEBCF45}"

RTDP_CID1_PATH="CLSID\{3739576F-F27B-4857-9E3E-8BAAA2A030B9}"
RTDP_CID2_PATH="CLSID\{BBA39DEF-B0D8-4D50-9133-85D5B1AC7971}"

RTCOMDLL_CLSID="{CC0CA09A-5B84-43F2-BE5C-9169C192565F}"
RTCOMDLL_CLSID2="{A9C2CEBF-36DC-40A3-92E6-ED59FDD9D20D}"
RTCOMDLL_CLSID3="{C6606CA5-2108-4CAF-8E52-1953F2DBF716}"
RTCOMDLL_CLSID4="{11825B7C-5AA6-4E2F-A4BC-67659568E925}"
RTCOMDLL_CLSID5="{697A25AB-7233-4E22-A6AB-896387D1980F}"

RTK_COM_TYPELIB="{26F518D6-88BB-4B03-B5B3-75147D609C90}"

RtkAudUServiceCOMObject_CLSID = "{615AC66B-72C3-4DEB-8F22-19B372142787}"
IRtkAudUServiceCOMObject_CLSID = "{5FF6484C-1BC1-49E6-B61F-A207D656CBDC}"
_IRtkAudUServiceCOMObjectEvents_CLSID = "{EA1C918E-7C98-4434-B18A-4EE83C866FF8}"
IRtkAudUServiceCOMNotificationClient_CLSID = "{572D0BCA-0207-4162-A74D-848870852D82}"
RtkAudUServiceCOMServer_TYPELIB_CLSID = "{71092E27-C34B-47D4-A961-8AD778F68191}"

REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
REG_MULTI_SZ = 0x00010000