From: Nick Rivers on 30 Oct 2006 13:00 I?ve used already some code from the Devcon sample. Maybe I have to re-check it. I?ve also used some code from an older DDK (install and remove c code). Maybe there?s the problem. "Eliyas Yakub [MSFT]" <eliyasy(a)online.microsoft.com> wrote in message news:O%23Kl49D$GHA.1224(a)TK2MSFTNGP04.phx.gbl... > Follow the devcon sample source code in the DDK. It describes how to > remove, rescan, pretty much everything that you can do with device > manager. > > -Eliyas > > "Nick Rivers" <nrivers(a)yahoo.com> wrote in message > news:esO9rgD$GHA.4428(a)TK2MSFTNGP04.phx.gbl... >> Thanks Eliyas! >> >> That sounds great so far. But I am still dealing with some small >> problems... >> >> I don?t know exactly howto uninstall the generic audio driver (device) >> correctly under Windows Vista! >> 'SetupDiCallClassInstaller' works but then my code acts strange. I do not >> get my some of my DebugView outputs anymore >> when calling this function from within my CoInstaller dll. But the device >> will be removed. >> >> Is it allowed to use this function to remove the device under Vista? >> Cause the 'Device Installation Rules and Guidelines for Windows Vista' >> white paper says only that it must not be used for software first >> installations. >> And how can I invoke a rescan of the bus? Using the >> SetupDiCallClassInstaller to remove the device seems to trigger a rescan >> automatically.... >> >> Thanks, >> -Nick >> >> "Eliyas Yakub [MSFT]" <eliyasy(a)online.microsoft.com> wrote in message >> news:eViNj9c%23GHA.1224(a)TK2MSFTNGP05.phx.gbl... >>> How about: >>> >>> 1) Use CopyINF to copy your INF for the audio device. >>> 2) From your coinstaller, uninstall the generic audio driver installed >>> by the system. >>> 3) Trigger a rescan of the bus so that the system can reinstall the >>> device with your INF because your INF will have more appropriate >>> device-id match than the compat-id match provided by the inbox INF. For >>> this to work, you driver package should be a signed package otherwise >>> inbox INF will take precedence over your INF. >>> >>> -Eliyas >>> >>> "Nick Rivers" <nrivers(a)yahoo.com> wrote in message >>> news:OutdMzb%23GHA.4524(a)TK2MSFTNGP04.phx.gbl... >>>> I?ve tried that CopyINF already in the past. It does not work for me. >>>> >>>> Problem with Windows Vista is, that the Audio device part will be >>>> installed automatically >>>> as a Generic Audio USB device using the inbox drivers (USBAudio.sys & >>>> some more) of Vista. >>>> (The device manager reports error Code 10 for this device). >>>> There will be no find new hardware wizard window for the Audio device, >>>> only for the Video device part. >>>> So I assume the CopyINF directive will not work for me. >>>> >>>> Do you have any more suggestions, please? >>>> >>>> >>>> "Eliyas Yakub [MSFT]" <eliyasy(a)online.microsoft.com> wrote in message >>>> news:OzryA%23S%23GHA.3312(a)TK2MSFTNGP02.phx.gbl... >>>>> Shouldn't you be using CopyINF directive to copy the INF files? There >>>>> is a section in the DDK docs "Copying INFs" that describes how to do >>>>> this. There is also a sample (\src\setup\cocpyinf\Install >>>>> ) in the DDK that demonstrates how to use CopyINF directive. Remember, >>>>> you have to use coinstaller only on Win2K to parse the CopyINF >>>>> directive in your INF. >>>>> >>>>> >>>>> -- >>>>> -Eliyas >>>>> This posting is provided "AS IS" with no warranties, and confers no >>>>> rights. >>>>> http://www.microsoft.com/whdc/driver/tips/default.mspx >>>>> >>>> >>>> >>> >>> >> >> > >
From: Eliyas Yakub [MSFT] on 30 Oct 2006 14:14 The install and remove samples from the older DDK aren't accurate. So follow the devcon sample. -- -Eliyas This posting is provided "AS IS" with no warranties, and confers no rights. http://www.microsoft.com/whdc/driver/tips/default.mspx
From: Nick Rivers on 31 Oct 2006 06:48
now it works like a charm! thanks Eliyas! "Eliyas Yakub [MSFT]" <eliyasy(a)online.microsoft.com> wrote in message news:Oha%23SeF$GHA.360(a)TK2MSFTNGP04.phx.gbl... > The install and remove samples from the older DDK aren't accurate. So > follow the devcon sample. > > -- > -Eliyas > This posting is provided "AS IS" with no warranties, and confers no > rights. > http://www.microsoft.com/whdc/driver/tips/default.mspx |