Re: How do you make a WDF driver create .Raw & .Translated resourc

Tech-Archive recommends: Speed Up your PC by fixing your registry



please post the code from the BlueWater driver which wrote out these values.

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"RussMitch" <RussMitch@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:8BF96EDA-FB3A-49B4-932E-0CEE90AA3600@xxxxxxxxxxxxxxxx
I've got a legacy app that queries these resources to determine if hardware
is present. Not my design, and not my app, I'm stuck with it.

/Russ

"Don Burn" wrote:

Why should you care?


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

"RussMitch" <RussMitch@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:07AAB38E-6C67-4FFA-9D5C-ABAE1EED204A@xxxxxxxxxxxxxxxx
> My driver does have an EvtDevicePrepareHardware() callback, which is > where
> I
> use WdfCmResourceListGetDescriptor() and MmMapIoSpace() to map in > device
> memory. Problem is, /Device/MyDriverName.Raw and
> /Device/MyDriverName.Translated resources are not created (under
> \MACHINE\HARDWARE\RESOURCEMAP\PnP Manager\PnpManager) with the WDF > driver
> and
> I can't figure out what causes them to be created with the legacy > driver.
>
> /Russ
>
> "Don Burn" wrote:
>
>> Your driver should have a EvtDevicePrepareHardware callback, this will
>> provide you with the resources.
>>
>>
>> -- >> Don Burn (MVP, Windows DDK)
>> Windows 2k/XP/2k3 Filesystem and Driver Consulting
>> Website: http://www.windrvr.com
>> Blog: http://msmvps.com/blogs/WinDrvr
>> Remove StopSpam to reply
>>
>>
>> "RussMitch" <RussMitch@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:408B7EE7-C7CF-4F4B-807C-0F05D67F0BFD@xxxxxxxxxxxxxxxx
>> > OK. Does anyone have any idea what triggers the creation of the .Raw
>> > and
>> > .Translated PnPManager resources?
>> >
>> > "RussMitch" wrote:
>> >
>> >> I'm trying to convert a legacy device driver, which was created >> >> with
>> >> BlueWater's DriverWizard, to WDF. The legacy driver creates
>> >> MyDriverName.Raw
>> >> & MyDriverName.Translated resources under
>> >> MACHINE\HARDWARE\RESOURCEMAP\PnP
>> >> Manager\PnpManager, but the WDF driver does not. How do I make the
>> >> WDF
>> >> driver create these resources?
>> >>
>> >> /Russ
>>
>>
>>




.



Relevant Pages