Share via


User Mode Driver Framework Registry Settings (Compact 2013)

3/26/2014

The following information describes the registry keys that are necessary to use the User Mode Driver Host and a User Mode Driver.

To load a driver into user mode, you should set the Flags value that is in the driver's device registry key to DEVFLAGS_LOAD_AS_USERPROC(0x10). If the device registry does not specify a ProcGroup setting, the default User Mode Driver Host launches the driver to a separate processor. If the device registry specifies a ProcGroup setting, the User Mode Driver Host that has a group ID equivalent to the ProcGroup value launches the driver. The following code example illustrates how to launch a User Mode Driver into the processor that has the same group ID.

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial]
                    "SysIntr"=dword:13
                    "IoBase"=dword:02F8
                    "IoLen"=dword:8
                    "DeviceArrayIndex"=dword:0
                    "Prefix"="COM"
                    "Flags"=dword:10
                    ;"ProcGroup"=dword:2
                    "IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
                    "Dll"="Com16550.Dll"
                    "Order"=dword:0
                    "Priority"=dword:0
                    ; Turn on follows for Installable ISR (isr16550 supporting SOFTWARE FIFO
                    ;"Irq"=dword:3
                    ;"IsrDll"="isr16550.dll"
                    ;"IsrHandler"="ISRHandler"

The following registry key entry is an example of a User Mode Driver Host with a specific group ID.

[HKEY_LOCAL_MACHINE\Drivers\ProcGroup_0002]
    "ProcName"="udevice.exe"    ; Dummy for Service.exe now.
    "ProcVolPrefix"="$services"

See Also

Reference

User Mode Driver Framework Reference

Other Resources

User Mode Driver Framework