Sample Code
Windows Driver Samples/ Multipath IO (MPIO) DSM Sample/ C++/ src/ msdsm.inf/
; ; Copyright (c) Microsoft Corporation. All rights reserved. ; [Version] Signature = "$WINDOWS NT$" Class = System ClassGuid = {4D36E97D-E325-11CE-BFC1-08002BE10318} Provider = %MSFT% [Manufacturer] %MSFT% = Microsoft,NT$ARCH$ [Microsoft] %Msdsm% = Msdsm_Install, Root\MSDSM [Microsoft.NT$ARCH$] %Msdsm% = Msdsm_Install, Root\MSDSM [DestinationDirs] DefaultDestDir = 12 ; system32\drivers [SourceDisksNames] 3426=windows cd [SourceDisksFiles] msdsm.sys = 3426 ; ; Multi-Path Device-Specific Module ; [Msdsm_Install] Copyfiles = Msdsm_Copyfiles [Msdsm_Copyfiles] msdsm.sys,,,0x100 [Msdsm_Install.Services] AddService = msdsm, %SPSVCINST_ASSOCSERVICE%, Msdsm_Service [Msdsm_Service] DisplayName = %Msdsm% ServiceType = %SERVICE_KERNEL_DRIVER% StartType = %SERVICE_BOOT_START% ErrorControl = %SERVICE_ERROR_NORMAL% ServiceBinary = %12%\msdsm.sys LoadOrderGroup = "System Bus Extender" AddReg = Msdsm_Addreg [Msdsm_Addreg] HKR, Parameters, DsmSupportedDeviceList, 0x00010002, "Vendor 8Product 16" ; ; The following cannot be grouped (as above) ; HKLM, SYSTEM\CurrentControlSet\Control\MPDEV, MPIOSupportedDeviceList, %REG_MULTI_SZ_APPEND%, "Vendor 8Product 16" ; ; Uninstall Section ; [DefaultUninstall] DelReg = Msdsm_Delreg [DefaultUninstall.Services] DelService = msdsm [Msdsm_Delreg] HKLM, SYSTEM\CurrentControlSet\Control\MPDEV, MPIOSupportedDeviceList, %REG_MULTI_SZ_DELETE%, "Vendor 8Product 16" [Strings] ; localizable MSFT = "Microsoft" Msdsm = "Microsoft Multi-Path Device Specific Module" ; ;Non-localizable, Handy macro substitutions ; SERVICE_KERNEL_DRIVER = 1 SERVICE_BOOT_START = 0 SERVICE_SYSTEM_START = 1 SERVICE_DEMAND_START = 3 SERVICE_ERROR_IGNORE = 0 SERVICE_ERROR_NORMAL = 1 SERVICE_ERROR_CRITICAL = 3 SPSVCINST_ASSOCSERVICE = 2 REG_MULTI_SZ = 0x00010000 REG_MULTI_SZ_APPEND = 0x00010008 REG_MULTI_SZ_DELETE = 0x00018002 REG_EXPAND_SZ = 0x00020000 REG_DWORD = 0x00010001 REG_BINARY_NOCLOBBER = 0x00030003
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials