Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. WDM upper filter STATUS DEVICE CONFIGURATION_ERROR

WDM upper filter STATUS DEVICE CONFIGURATION_ERROR

Scheduled Pinned Locked Moved Hardware & Devices
helpquestionworkspace
12 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    papagal
    wrote on last edited by
    #1

    Hello, I have a WDM upperfilter driver for some class devices(WPD, Printers). The wdm upper filter is from WDK generic toaster filter sample. The problem that I have is for some device that support or install UMDF drivers I receive STATUS DEVICE CONFIGURATION_ERROR at IRP_MN_START_DEVICE and device failed to start. Can you help me please or give me an advice? Thank you.

    M 1 Reply Last reply
    0
    • P papagal

      Hello, I have a WDM upperfilter driver for some class devices(WPD, Printers). The wdm upper filter is from WDK generic toaster filter sample. The problem that I have is for some device that support or install UMDF drivers I receive STATUS DEVICE CONFIGURATION_ERROR at IRP_MN_START_DEVICE and device failed to start. Can you help me please or give me an advice? Thank you.

      M Offline
      M Offline
      Munchies_Matt
      wrote on last edited by
      #2

      What does 'U' stand for?

      P 1 Reply Last reply
      0
      • M Munchies_Matt

        What does 'U' stand for?

        P Offline
        P Offline
        papagal
        wrote on last edited by
        #3

        WDF = UMDF + KMDF (user moder driver + kernel mode driver)

        M 1 Reply Last reply
        0
        • P papagal

          WDF = UMDF + KMDF (user moder driver + kernel mode driver)

          M Offline
          M Offline
          Munchies_Matt
          wrote on last edited by
          #4

          And the toaster samples are kernel drivers. So how can you load a kernel filter on a usermode driver?

          P 1 Reply Last reply
          0
          • M Munchies_Matt

            And the toaster samples are kernel drivers. So how can you load a kernel filter on a usermode driver?

            P Offline
            P Offline
            papagal
            wrote on last edited by
            #5

            You don't understand. I'm an upper filter driver(KERNEL) over a device class that use in his stack an UMDF driver...

            M 1 Reply Last reply
            0
            • P papagal

              You don't understand. I'm an upper filter driver(KERNEL) over a device class that use in his stack an UMDF driver...

              M Offline
              M Offline
              Munchies_Matt
              wrote on last edited by
              #6

              The driver is in usermode. You cant run kernel code (the filter) in user mode, and vice versa.

              P 1 Reply Last reply
              0
              • M Munchies_Matt

                The driver is in usermode. You cant run kernel code (the filter) in user mode, and vice versa.

                P Offline
                P Offline
                papagal
                wrote on last edited by
                #7

                Without the UMDF my filter works

                M 1 Reply Last reply
                0
                • P papagal

                  Without the UMDF my filter works

                  M Offline
                  M Offline
                  Munchies_Matt
                  wrote on last edited by
                  #8

                  You mean it works when you load it onto the toaster driver. Of course it will. However kernel code cant run in user mode, and a UMDF driver is user mode. Therefore the toaster filter driver, which is kernel code, cant be used on your UMDF driver. You really have no idea what you are doing do you? You don't even understand the concept of user mode and kernel?

                  P 1 Reply Last reply
                  0
                  • M Munchies_Matt

                    You mean it works when you load it onto the toaster driver. Of course it will. However kernel code cant run in user mode, and a UMDF driver is user mode. Therefore the toaster filter driver, which is kernel code, cant be used on your UMDF driver. You really have no idea what you are doing do you? You don't even understand the concept of user mode and kernel?

                    P Offline
                    P Offline
                    papagal
                    wrote on last edited by
                    #9

                    My friend: I have a WDM filter driver, based on WDK toaster sample, that I am using to filter portable devices (mainly Phones), as upper filter. During AddDevice phase, I am querying device properties (such Description, Manufacturer and so on) and then attaching to device. I can see the IRP_MN_START_DEVICE, which I send down to next lower driver after setting a completion routine. This is working fine on most of the machines I am testing on, but on some systems (every XP and some Windows 7 and Server 2008), when I send the IRP_MN_START_DEVICE down to next driver, I get a STATUS_DEVICE_CONFIGURATION_ERROR, so this is preventing the device from being installed in the first place. I have managed to overcome this error by editing the hardware ID registry key for the device and creating "UpperDriverOk" and "KernelModeClientPolicy" values, setting them to 1. This way the device starts without issues and I can filter it as normal. Now, I am aware of Portable Devices being managed by an UMDF driver, but does that explains the issue with Start Device phase? I haven't found any differences between those systems with the issue and those that are working fine without needing the "registry values" workaround. Is there any system setting or service configuration that might be helping (or ruining) this filtering scenario? Would it be possible to apply the "KernelModeClientPolicy" workaround for the whole system and not separately for every single Phone device?

                    P M 2 Replies Last reply
                    0
                    • P papagal

                      My friend: I have a WDM filter driver, based on WDK toaster sample, that I am using to filter portable devices (mainly Phones), as upper filter. During AddDevice phase, I am querying device properties (such Description, Manufacturer and so on) and then attaching to device. I can see the IRP_MN_START_DEVICE, which I send down to next lower driver after setting a completion routine. This is working fine on most of the machines I am testing on, but on some systems (every XP and some Windows 7 and Server 2008), when I send the IRP_MN_START_DEVICE down to next driver, I get a STATUS_DEVICE_CONFIGURATION_ERROR, so this is preventing the device from being installed in the first place. I have managed to overcome this error by editing the hardware ID registry key for the device and creating "UpperDriverOk" and "KernelModeClientPolicy" values, setting them to 1. This way the device starts without issues and I can filter it as normal. Now, I am aware of Portable Devices being managed by an UMDF driver, but does that explains the issue with Start Device phase? I haven't found any differences between those systems with the issue and those that are working fine without needing the "registry values" workaround. Is there any system setting or service configuration that might be helping (or ruining) this filtering scenario? Would it be possible to apply the "KernelModeClientPolicy" workaround for the whole system and not separately for every single Phone device?

                      P Offline
                      P Offline
                      papagal
                      wrote on last edited by
                      #10

                      Maybe I wasn't so clear :)

                      1 Reply Last reply
                      0
                      • P papagal

                        My friend: I have a WDM filter driver, based on WDK toaster sample, that I am using to filter portable devices (mainly Phones), as upper filter. During AddDevice phase, I am querying device properties (such Description, Manufacturer and so on) and then attaching to device. I can see the IRP_MN_START_DEVICE, which I send down to next lower driver after setting a completion routine. This is working fine on most of the machines I am testing on, but on some systems (every XP and some Windows 7 and Server 2008), when I send the IRP_MN_START_DEVICE down to next driver, I get a STATUS_DEVICE_CONFIGURATION_ERROR, so this is preventing the device from being installed in the first place. I have managed to overcome this error by editing the hardware ID registry key for the device and creating "UpperDriverOk" and "KernelModeClientPolicy" values, setting them to 1. This way the device starts without issues and I can filter it as normal. Now, I am aware of Portable Devices being managed by an UMDF driver, but does that explains the issue with Start Device phase? I haven't found any differences between those systems with the issue and those that are working fine without needing the "registry values" workaround. Is there any system setting or service configuration that might be helping (or ruining) this filtering scenario? Would it be possible to apply the "KernelModeClientPolicy" workaround for the whole system and not separately for every single Phone device?

                        M Offline
                        M Offline
                        Munchies_Matt
                        wrote on last edited by
                        #11

                        No, you didn't explain yourself at all well. I have no idea what the cause of your failure is.

                        P 1 Reply Last reply
                        0
                        • M Munchies_Matt

                          No, you didn't explain yourself at all well. I have no idea what the cause of your failure is.

                          P Offline
                          P Offline
                          papagal
                          wrote on last edited by
                          #12

                          Ok. Thank you for your time.

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups