Yes you can use this to enumerate virtual devices of any class, but there
are numerous other problems such as not being able to disable/enable,
uninstall or reinstall these devices. To uninstall you have to manually go
and delete the registry entries of all the registered interfaces. Otherwise,
it will get reenumerated if somebody opens the interface again. If there is
no open handle to the device, you can’t see them in the device manager
unless you set the magic DEVMGR_SHOW_NONPRESENT_DEVICES variable.
I like the SWENUM concept - loads the driver only when somebody opens the
interface registered for the device - but as it stands now, it’s not feature
complete for other device classes. It’s more device interface centric. We
are making some changes to the SWENUM interface to be more generic Software
driver enumerator on future oses.
I wrote a sample driver looong time ago to explore this concept and then
decided not to include in the DDK for lack of documentation and above
mentioned reasons. If anybody wants to JUST PLAY around with it to
understand how this works, send me a note. I can give you the source. It’s
cool. Just 15 lines of code and your software device is ready to pnp.
-Eliyas
-----Original Message-----
From: Axel Heider
Sent: Mon 12/18/2000 5:26 AM
To: NT Developers Interest List
Cc:
Subject: [ntdev] SWENUM.SYS (PnP software device enumerator)
Hi,
where can I finde more information about SWENUM.SYS?
Can I use this to enumerate any software device of
is this specific to an device calss?
At the moment I am about to write a virtual bus driver
for my virtual devices, so I wonder if I can use this
driver somehow?
regards, Axel
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
begin 600 winmail.dat
M>)^(BL70:0"``$```````!``$``0\>0!@
(Y`0```````#H``$%@`,` M#@```-`'#``3``X`&``A``(`/P$!"8`!`"$
xxxxx@S0C8R-3!$0T$T130X
M.#)$-3U1C(T0T)!130R-``_!P$@@
,#@```-
‘#3
`+PH``(
7@$!
M#8$``(````"``(``0.0!@"4%```.@```$``.0!8TB-V"FK``1\
,4!```` M#@```#,
-0U
#,.0
P#`!I``````!\`,$`!````#@```#,`-0`U M`#,`.0`P
#!E``````!\
20!````:````%L
;@!T&0
90!V%T
M(!3
%<10!.
%430
N%,
60!3"``*
!0&X
4@`',`;P!F`'0`=P!A M`'(`90`@`&0`90!V`&D`8P!E`"
90!N'4
;0!E'(
80!T&\
<@I```` M0
!.!CTR_V:,`!`@%;
$!!`````````($K'Z2^HQ`9G6X`W0$/5`(` M````07AE;"!(96ED97(`4TU44`!A\>&5L+FAE:61E<d>M
?&8``0````H```!3
$T5
!0?`&<``0```#````!A`'@`90!L<br>M`"X`:`!E`&D`9`!E`'(`0`!T`&\`=P!I`'0`;P!K`&\`+@!D`&4````?`%H`<br>M`0```!@```!!`'@`90!L`"``2`!E`&D`9`!E`'(````?`#)``0```#````!A<br>M`'@`90!L`"X`:`!E`&D`9`!E`'(`0`!T`&\`=P!I`'0`;P!K`&\`+@!D`&4`<br>M```"`5P``0```!T```!33510.D%814PN2$5)1$520%1/5TE43TM/+D1%````<br>M``,`'4
@%>$```!!`````````($K'Z2^HQ`9G6X`W0$/5`(`````<br>M07AE;"!(96ED97(`4TU44`!A>&5L+FAE:61E<d>M`&@
0H```!3`$T`5`!0```````?`&D``0```#
!A'@
90!L"X
M:!E
&D9
!E'(
0!T
&`=P!I'0
;P!K&\
+@!D&4````?
%T0
M!@```!!
’@90!L
"2`!E`&D`9`!E`'(````?`#-
0#````!A`'@`<br>M90!L`"X`:`!E`&D`9`!E`'(`0`!T`&\`=P!I`'0`;P!K`&\`+@!D`&4````"<br>M`5\``0
!T!33510.D%814PN2$5)1$520%1/5TE43TM/+D1%``````,`<br>M'D```````@%Q``$````;`````M`!\`=``!````.````$X`5``@`$0`90!V`&4`;`!O`'``90!R`',`(`!)`&X`<br>M=`!E`'(`90!S`'0`(`!,`&D`<p>M6D9U4]ZS]P,`"@!R8W!G,3(U@C(#0VAT;6PQ`S`_`0,!]PJ``J0#XP(`8VC!<br>M"L!S970P(`<3`H#_$`,`4`16"%4'LA'5#E$#`=T0US(&``;#$=4S!$80V=D2<br>M[V8T`\81BC4#Q@=M;P*`$>,([PGW.QP/#C`UWQTO'C\<q1>M9#,V$6`+I30@$`+L*EP.L@&09Q3P"J,1XP4CJ#04\#PA1$]#`%194$4@2%1-<br>M`$P@4%5"3$E#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%\U9HV"ST_"A0G5R7>!0`&RR(8EO0'-C/0!B963`4M_G;Q"_Z81R8]/P<br>M<rx>/Q]/(%\7S5GP<br>MX_!N_R-WLC#2@"0`U``D7R5OZ82T8FRR`&MW0*+0:4<@420A;&5A71`M<f>M,#<s2>A!-"3$^`0TM1<br>M54]413I/;S_/$&]%'Q$W-2^1<,!/O$19R+UPD$;?$:$WA#%02%1-3"S@?4N0<br>M`!\`1Q`!````'@
&T90!S
’,80!G
&4+P!R
&88P
X#(
,@<br>M`P`F```````#`#8```````,`WC_I_0```P#Q/PD$```#`/T_Y`0``!\`<``!<br>M````:````%L`;@!T`&0`90!V`%T`(`!3`%<`10!.`%4`30`N`%,`60!3`"``<br>M*`!0`&X`4``@`',`;P!F`'0`=P!A`'(`90`@`&0`90!V`&D`8P!E`"``90!N<br>M`'4`;0!E`'(`80!T`&\`<@`I````"P#R$`$````+`/00
L]1``````<br>M"P#V$``````?
/,00```'P```!2
$4)0
S$$
(!;
&X=
!D&4
=@!=
M"``4P!7
$43@!5
$T+@!3
%D4P
@"@
4!N
%(`!S`&\`9@!T`'<`<br>M80!R`&4`(`!D`&4`=@!I`&,`90`@`&4`;@!U`&T`90!R`&$`=`!O`'(`*0`N<br>M`$4`30!,`````@%'
$R
8SU54SMA/4U#23MP/6US9G0[;#U2140M
M35-'+3U+3
P,3(Q.3(R,C0S,UHM,SDS.0(!^3\!
40````````#<
MIT#(P$(0&K2Y"K+^&"`0`````````O3SU-24-23U-/1E0O3U4]3D]25$A!<br>M345224-!+T-./5)%0TE0245.5%,O0TX],S4U,SDP`````!\`^#\!````&@
M`$4`;`!I`‘D`80!S`"60!A`&L`=0!B```````?`#A
0````X````S`#4`
M-0`S`#D`,````````@’[/P$!1`````````-RG0,C`0A`:M+D(`"LOX8(!<br>M`````````"]//4U)0U)/4T]&5"]/53U.3U)42$%-15))0T$O0TX]4D5#25!)<br>M14Y44R]#3CTS-34S.3``````'P#Z/P$````:````10!L`&D`>0!A`',`(`!9<br>M`&$`:P!U`&(``````!\`.4`!````#@
#,`-0`U`#,`.0`P``````!```
xxxxx@G*xxxxx@5JP`%```@PK"T+$Q9JP`$?`!H0```!(```!)`%
30`N`$X`3P!4
M`$4``````!`-P`!````<````%(`10`Z`“6P!N`'0`9`!E`'8`70`@`%,`<br>M5P!%`$X`50!-`"X`4P!9`%,`(
H`%``;@!0`”``
M`"``9`!E`'8`:0!C`&4`(`!E`&X`=0!M`&4`<@!A`'0`;P!R`"D````?`#T`
M`0````H```!2`$4`.@`@```````?`!T.`0```&@```!;`&X`=`!D`&4`=@!=
M`"``4P!7`$4`3@!5`$T`+@!3`%D`4P`@`"@`4`!N`%``(`!S`&\`9@!T`'<`
M80!R`&4`(`!D`&4`=@!I`&,`90`@`&4`;@!U`&T`90!R`&$`=`!O`'(`*0``
M`!\`-1`!````G@```#P`,``Q`#(`10`T`$0`.``S`#4`-``Y`#$`00`R`#0`
M.``Y`$(`0@`S`$(`.0!!`$0`-P!&`#``.``V`$8`1@`R`#0`.``X`#4`.0`R
M`$``<@!E`&0`+0!M`',`9P`M`#``-0`N`'(`90!D`&T`;P!N`&0`+@!C`&\`
M<@!P`"X`;0!I`&,`<@!O`',`;P!F`'0`+@!C`&\`;0`^```````+`"D`````
M``L`(P```````P`&$)!>4X,#``<0O04```,`$!```````P`1$``````>``@0
M`0```&4```!915-93U5#04Y54T542$E35$]%3E5-15)!5$5625)454%,1$56
M24-%4T]&04Y90TQ!4U,L0E545$A%4D5!4D5.54U%4D]54T]42$524%)/0DQ%
M35-354-(05-.3U1"14E.1T%"``````(!?P`!````3P```#PP,3)%-$0X,S4T
M.3%!,C0X.4)",T(Y040W1C`X-D9&,C0X.#4Y,D!R960M;7-G+3`U+G)E9&UO
:;F0N8V]R<"YM:6-R;W-O9G0N8V]M/@``YU(=
`
end
---
You are currently subscribed to ntdev as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-ntdev-$subst('Recip.MemberIDChar')@lists.osr.com