; Copyright (C) 1995-2010 Matrox Graphics Inc.

[Version]
Signature = "$Windows NT$"
DriverVer=09/10/2013, 1.7.0.2
Class = System
ClassGuid = {4D36E97D-E325-11CE-BFC1-08002BE10318}
Provider = %MxEMgr.InfCreatorName%
CatalogFile.ntx86 = MxEMgr.cat
CatalogFile.ntamd64 = MxEMgr64.cat

[SourceDisksNames]

[SourceDisksNames.x86]
1 = %MxEMgr.SourceDiskName%,MSerX.cab

[SourceDisksNames.amd64]
1 = %MxEMgr.SourceDiskName%,MSerX64.cab

[SourceDisksFiles.AMD64]
MxEMgr64.sys = 1
MxESvc64.exe = 1

[SourceDisksFiles.X86]
MxEMgr32.sys = 1
MxESvc32.exe = 1

[SourceDisksFiles]

[DestinationDirs]
DefaultDestDir                                     = 12            ; %SystemRoot%\system32\drivers
MxEMgr.InstallInfo.KernelDrivers.NTAMD64.CopyFiles = 12            ; %SystemRoot%\system32\drivers
MxEMgr.InstallInfo.KernelDrivers.NTX86.CopyFiles   = 12            ; %SystemRoot%\system32\drivers
MxEMgr.InstallInfo.SystemDlls.NT.CopyFiles         = 11            ; %SystemRoot%\system32
MxEMgr.InstallInfo.CopyFiles                       = 11            ; %SystemRoot%\system32
MxEMgr.InstallInfo.SysWOW64.CopyFiles              = 10, SysWOW64  ; %SystemRoot%\SysWOW64
MxESvc.InstallInfo.NTAMD64.CopyFiles               = 11            ; %SystemRoot%\system32
MxESvc.InstallInfo.NTX86.CopyFiles                 = 11            ; %SystemRoot%\system32

[Manufacturer]
%MxEMgr.DeviceManufacturerName% = MxEMgr.DeviceModelsList, NT, NTAMD64, NTX86, NTAMD64.5.1, NTX86.5.1

[MxEMgr.DeviceModelsList.NTAMD64.5.1]
%MxEMgr.DeviceModelDescription% = MxEMgr.InstallInfo.NTAMD64.5.1,   %MxEMgr.HardwareId%

[MxEMgr.DeviceModelsList.NTX86.5.1]
%MxEMgr.DeviceModelDescription% = MxEMgr.InstallInfo.NTX86.5.1,     %MxEMgr.HardwareId%

[MxEMgr.DeviceModelsList.NTAMD64]
%MxEMgr.DeviceModelDescription% = MxEMgr.InstallInfo.NTAMD64,       %MxEMgr.HardwareId%

[MxEMgr.DeviceModelsList.NTX86]
%MxEMgr.DeviceModelDescription% = MxEMgr.InstallInfo.NTX86,         %MxEMgr.HardwareId%

[MxEMgr.DeviceModelsList.NT]
%MxEMgr.DeviceModelDescription% = MxEMgr.InstallInfo.NT,            %MxEMgr.HardwareId%

[MxEMgr.DeviceModelsList]
%MxEMgr.DeviceModelDescription% = MxEMgr.InstallInfo,               %MxEMgr.HardwareId%

[MxEMgr.InstallInfo.NTAMD64.5.1]
CopyFiles = MxEMgr.InstallInfo.KernelDrivers.NTAMD64.CopyFiles, \
            MxEMgr.InstallInfo.SystemDlls.NT.CopyFiles, \
            MxEMgr.InstallInfo.Infs.CopyFiles, \
            MxEMgr.InstallInfo.CopyFiles, \
            MxESvc.InstallInfo.NTAMD64.CopyFiles

[MxEMgr.InstallInfo.NTX86.5.1]
CopyFiles = MxEMgr.InstallInfo.KernelDrivers.NTX86.CopyFiles, \
            MxEMgr.InstallInfo.SystemDlls.NT.CopyFiles, \
            MxEMgr.InstallInfo.Infs.CopyFiles, \
            MxEMgr.InstallInfo.CopyFiles, \
            MxESvc.InstallInfo.NTX86.CopyFiles

[MxEMgr.InstallInfo.NTAMD64]

[MxEMgr.InstallInfo.NTX86]

[MxEMgr.InstallInfo.NT]

[MxEMgr.InstallInfo]

[MxEMgr.InstallInfo.NTAMD64.5.1.Services]
AddService = %MxEMgr.RegistryServiceName%, %ADDSERVICEFLAG_FUNCTION_DRIVER%, MxEMgr.InstallInfo.NTAMD64.AddService
AddService = %MxESvc.ServiceName%,, MxESvc.InstallInfo.NTAMD64.AddService

[MxEMgr.InstallInfo.NTX86.5.1.Services]
AddService = %MxEMgr.RegistryServiceName%, %ADDSERVICEFLAG_FUNCTION_DRIVER%, MxEMgr.InstallInfo.NTX86.AddService
AddService = %MxESvc.ServiceName%,, MxESvc.InstallInfo.NTX86.AddService

; [MxEMgr.InstallInfo.Services]

[MxEMgr.InstallInfo.NTAMD64.5.1.HW]
AddReg  = MxEMgr.InstallInfo.NTAMD64.HW.AddReg
AddReg  = MxEMgr.InstallInfo.NT.HW.AddReg

[MxEMgr.InstallInfo.NTX86.5.1.HW]
AddReg  = MxEMgr.InstallInfo.NTX86.HW.AddReg
AddReg  = MxEMgr.InstallInfo.NT.HW.AddReg

; [MxEMgr.InstallInfo.HW]

[MxEMgr.InstallInfo.KernelDrivers.NTAMD64.CopyFiles]
MxEMgr64.sys,,,0x00000004

[MxEMgr.InstallInfo.KernelDrivers.NTX86.CopyFiles]
MxEMgr32.sys,,,0x00000004

[MxEMgr.InstallInfo.SystemDlls.NT.CopyFiles]
;MxEMgr.NT.exe

[MxEMgr.InstallInfo.Infs.CopyFiles]
;%MxEMgr.This.Inf.File%                 ; This file

[MxESvc.InstallInfo.NTAMD64.CopyFiles]
MxESvc64.exe,,,0x00000004

[MxESvc.InstallInfo.NTX86.CopyFiles]
MxESvc32.exe,,,0x00000004

[MxEMgr.InstallInfo.CopyFiles]

[MxEMgr.InstallInfo.SysWOW64.CopyFiles]

[MxEMgr.InstallInfo.NTAMD64.AddService]
DisplayName     = %MxEMgr.RegistryServiceDescription%
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_BOOT_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\MxEMgr64.sys
LoadOrderGroup  = %MxEMgr.LoadOrderGroup%

[MxEMgr.InstallInfo.NTX86.AddService]
DisplayName     = %MxEMgr.RegistryServiceDescription%
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_BOOT_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\MxEMgr32.sys
LoadOrderGroup  = %MxEMgr.LoadOrderGroup%

[MxESvc.InstallInfo.NTAMD64.AddService]
DisplayName     = %MxESvc.DisplayName%
Description     = %MxESvc.Description%
ServiceType     = %SERVICE_WIN32_OWN_PROCESS%
StartType       = %SERVICE_AUTO_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %11%\MxESvc64.exe

[MxESvc.InstallInfo.NTX86.AddService]
DisplayName     = %MxESvc.DisplayName%
Description     = %MxESvc.Description%
ServiceType     = %SERVICE_WIN32_OWN_PROCESS%
StartType       = %SERVICE_AUTO_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %11%\MxESvc32.exe

[MxEMgr.InstallInfo.NTAMD64.HW.AddReg]

[MxEMgr.InstallInfo.NTX86.HW.AddReg]

[MxEMgr.InstallInfo.NT.HW.AddReg]

[Strings]

MxEMgr.InfCreatorName               = "Matrox Graphics Inc."
MxEMgr.DeviceManufacturerName       = "Matrox Graphics Inc."
MxEMgr.SourceDiskName               = "Matrox Extio Manager Driver Disk"
MxEMgr.DeviceModelDescription       = "Matrox Extio"
MxEMgr.RegistryServiceName          = "MxEMgr"
MxEMgr.RegistryServiceDescription   = "Matrox Extio Manager"
MxEMgr.HardwareId                   = "Root\MxEMgr"
MxEMgr.This.Inf.File                = "MxEMgr.inf"
MxEMgr.LoadOrderGroup               = "Boot Bus Extender"
MxESvc.ServiceName                  = "MxESvc"
MxESvc.DisplayName                  = "Matrox Extio Service"
MxESvc.Description                  = "Provides support for Matrox Extio drivers"

ADDSERVICEFLAG_FUNCTION_DRIVER  = "0x00000002"  ; %SPSVCINST_ASSOCSERVICE%
ADDSERVICEFLAG_FILTER_DRIVER    = " "           ; %SPSVCINST_NO_FLAGS%

; The following macros are defined in setupapi.h
;
; Flags for SetupInstallServicesFromInfSection(Ex).
;
SPSVCINST_NO_FLAGS              = "0x00000000"  ; There is no such a value in setupapi.h
SPSVCINST_ASSOCSERVICE          = "0x00000002"  ; PnP function driver or legacy driver. Do not use for filter driver.
;
;
; Flags for AddReg section lines in INF.
; Format of the AddReg line:
;
; <RegRootString>,<SubKey>,<ValueName>,<ValueType>,<Value>...
;
; Flags for value <ValueType> in the AddReg section:
;
FLG_ADDREG_NOCLOBBER            = "0x00000002"
FLG_ADDREG_DELVAL               = "0x00000004"
FLG_ADDREG_APPEND               = "0x00000008" ; Currently supported only for REG_MULTI_SZ values.
FLG_ADDREG_KEYONLY              = "0x00000010" ; Just create the key, ignore value
FLG_ADDREG_OVERWRITEONLY        = "0x00000020" ; Set only if value already exists
FLG_ADDREG_64BITKEY             = "0x00001000" ; Make this change in the 64 bit registry.
FLG_ADDREG_KEYONLY_COMMON       = "0x00002000" ; Same as FLG_ADDREG_KEYONLY but also works for DELREG
FLG_ADDREG_32BITKEY             = "0x00004000" ; Make this change in the 32 bit registry.
FLG_ADDREG_DELREG_BIT           = "0x00008000" ; If set, interpret as DELREG
;
FLG_ADDREG_TYPE_SZ              = "0x00000000"
FLG_ADDREG_BINVALUETYPE         = "0x00000001"
FLG_ADDREG_TYPE_MULTI_SZ        = "0x00010000"
FLG_ADDREG_TYPE_APPEND_MULTI_SZ = "0x00010008"
FLG_ADDREG_TYPE_EXPAND_SZ       = "0x00020000"
FLG_ADDREG_TYPE_DWORD           = "0x00010001"
FLG_DELREG_MULTI_SZ_DELSTRING   = "0x00018002"
;
; End of macro definitions from setupapi.h

; The following macros are defined in ntddk.h
;
; Service Types (Bit Mask)
;
SERVICE_KERNEL_DRIVER           = "0x00000001"
SERVICE_FILE_SYSTEM_DRIVER      = "0x00000002"
SERVICE_ADAPTER                 = "0x00000004"
SERVICE_RECOGNIZER_DRIVER       = "0x00000008"
SERVICE_WIN32_OWN_PROCESS       = "0x00000010"
SERVICE_WIN32_SHARE_PROCESS     = "0x00000020"
SERVICE_INTERACTIVE_PROCESS     = "0x00000100"
;
; Start Type
;
SERVICE_BOOT_START              = "0x00000000"
SERVICE_SYSTEM_START            = "0x00000001"
SERVICE_AUTO_START              = "0x00000002"
SERVICE_DEMAND_START            = "0x00000003"
SERVICE_DISABLED                = "0x00000004"
;
; Error control type
;
SERVICE_ERROR_IGNORE            = "0x00000000"
SERVICE_ERROR_NORMAL            = "0x00000001"
SERVICE_ERROR_SEVERE            = "0x00000002"
SERVICE_ERROR_CRITICAL          = "0x00000003"
;
; End of macro definitions from ntddk.h

