In other words: don't try. Just use the INF.
--
Ray
Thanks for your tip.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96B-E325-11CE-B
FC1-08002BE10318}
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
ma...@storagecraft.com
http://www.storagecraft.com
"Thiago" <thif...@gmail.com> wrote in message
news:b02770a6-8dcc-4d4c...@56g2000hsm.googlegroups.com...
Is there some reason you're trying to make this as difficult as possible
on yourself?
Anyway, as others have said, you can get it to work by adding your
service and then putting it in i8042prt's UpperFilters key. But it's
still only about 1% of what UpdateDriverForPlugAndPlayDevices does when
given an INF file, even on XP.
--
Ray
90% actually, only copying the file to Driver Store and INF file to OEMxxxx.INF
is skipped, as also restarts of the existing active stacks.
Registry updates are the same.
I would call your accounting odd, given that even the 3 steps you
mentioned would imply no more than 25%, even if you count setting 1
registry key as equal in complexity to those steps.
But UDFPNPD also updates the dev node (to include, for example, the
device description, HWIDs, etc., in the INF), validates the INF against
the device IDs, creates a driver and system rollback point, updates the
last known good configuration, compiles the INF to a PNF, executes any
class and device coinstallers, puts entries in the system log for
auditing purposes, checks domain device rules, and probably half a dozen
other things I don't know about (but I won't count those).
Each of these is *far* more complex than setting a registry key, but
I'll count them the same for the sake of argument. That would make the
reg key at most 7% of what UDFPNPD does.
Forgive my exaggeration.
Maxim S. Shatskih wrote:
>> still only about 1% of what UpdateDriverForPlugAndPlayDevices does when
>> given an INF file, even on XP.
>
> 90% actually, only copying the file to Driver Store and INF file to OEMxxxx.INF
> is skipped, as also restarts of the existing active stacks.
>
> Registry updates are the same.
>
--
Ray