Of OIDs and IOCTLs

This is a repost. With the list problems over the weekend and my companies
moving, I’m not sure this made it out or replies made it to me.

We’ve been working on an NDIS miniport and require some method of
controling and querying it. OIDs are mentioned quite frequently in the DDK
and it looks fairly straight forward to generate custom OIDs.

The question is how would a user level program work with them. A coworker
mentions that in a previous job they used CreateFile and DeviceIoControl to
send OIDs to a miniport. I haven’t been able to find that process
documented in the SDK or DDK. That is, I can’t see where it is documented
that sending an OID as if it were an IOCTL is a valid thing to do.

Do OIDs work this way?
If not, how do I do send an OID from a user application?

TIA
Dan


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

I guess it’s been my day to field some questions. Ordinarily I just listen
to the gurus.

See the PCAUSA MACADDR II sample (including source) at:

http:

This sample illustrates use of the IOCTL_NDIS_QUERY_GLOBAL_STATS facility.

There has been some criticism that this sample identifies adapters by
peeking into the registry instead of using SetupDi functions. Sorry.

This sample is an extension of the Microsoft NT 4.0 DDK “MACADDR” sample.
That sample was not included in the Windows 2000 DDK. MACADDR II works on
Windows NT and Windows 2000 only.

No, it does NOT work on Windows 9X or ME! Sorry. On those platforms one must
use other techniques such as WMI (perhaps on Me), private IOCTLS (make sure
you look into WHQL ramifications) or a supporting “proxy” or “relay” NDIS
protocol driver.

Good luck,

Thomas F. Divine

PCAUSA - Toolkits & Resources For Network Software Developers
NDIS Protocol - NDIS Intermediate - TDI Client
http: - http:

----- Original Message -----
From:
To: NT Developers Interest List
Sent: Tuesday, December 19, 2000 2:00 PM
Subject: [ntdev] Of OIDs and IOCTLs

> This is a repost. With the list problems over the weekend and my companies
> moving, I’m not sure this made it out or replies made it to me.
>
> We’ve been working on an NDIS miniport and require some method of
> controling and querying it. OIDs are mentioned quite frequently in the DDK
> and it looks fairly straight forward to generate custom OIDs.
>
> The question is how would a user level program work with them. A coworker
> mentions that in a previous job they used CreateFile and DeviceIoControl
to
> send OIDs to a miniport. I haven’t been able to find that process
> documented in the SDK or DDK. That is, I can’t see where it is documented
> that sending an OID as if it were an IOCTL is a valid thing to do.
>
> Do OIDs work this way?
> If not, how do I do send an OID from a user application?
>
> TIA
> Dan
>
> —
> You are currently subscribed to ntdev as: xxxxx@pcausa.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


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</http:></http:></http:>

WBEM-WMI is the only MS recommended way for userapps to interact with NDIS
miniport drivers. Since WMI is not fully available on NT4.0 and some 9x
platforms, developers resort to various other techniques for compatibility
reasons. Someone in comp.os*.kernel-mode newsgroup summarized all the
techniques - which one works where, how it works etc. So please search the
archive.

If you are targetting your driver for Me and Win2K++ platforms, I would
recommend WMI interface. We have a sample driver (e100bex) in the Whistler
DDK with an user app (testwmi) that demonstrates this interface clearly.

-Eliyas

-----Original Message-----
From: xxxxx@giganet.com
Sent: Mon 12/18/2000 5:00 PM
To: NT Developers Interest List
Cc:
Subject: [ntdev] Of OIDs and IOCTLs

This is a repost. With the list problems over the weekend and my companies
moving, I’m not sure this made it out or replies made it to me.

We’ve been working on an NDIS miniport and require some method of
controling and querying it. OIDs are mentioned quite frequently in the DDK
and it looks fairly straight forward to generate custom OIDs.

The question is how would a user level program work with them. A coworker
mentions that in a previous job they used CreateFile and DeviceIoControl to
send OIDs to a miniport. I haven’t been able to find that process
documented in the SDK or DDK. That is, I can’t see where it is documented
that sending an OID as if it were an IOCTL is a valid thing to do.

Do OIDs work this way?
If not, how do I do send an OID from a user application?

TIA
Dan


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>)^(@(50:0"``$```````!``$``0\>0!@(Y`0```````#H``$%@`,` M#@```-`'#``3``P`'@`:``(`/`$!"8`!`"$T,T-%-#1#0S8R.$)#-30U
M03$Q.#Q03%&1#(T,$)"1``V!P$@@,#@```-'#3T'P````()$! M#8$(````"(0.0!@`T%```.@```$.0MXAN%^FG``1\,4!```` M#@```#,-0U#,.0P#`!I``````!\`,$`!````#@```#,`-0`U M`#,`.0`P#!E``````!\20!````-@```%L;@!T&090!V%T
M(!/&8(!/$D1!S"``80!N&0(!)$`0P!4$P

M!H`P-7:\<`!`@%;$!)`````````($K'Z2^HQ`9G6X`W0$/5`(````` M9'-U;&QI=F%N0&=I9V%N970N8V]M`%--5%``9'-U;&QI=F%N0&=I9V%N970N M8V]M`````!\`9@`!````"@%,30!4%```````!`9P!````+````&0
M

M$````L````9`!S`'4`;`!L`&D`=@!A`&X`0`!G`&D`9P!A`&X`90!T`"X` M8P!O`&T````?`#)0"P!D',=0!L&P:0!V&$;@!&\<`:0!G M`&$`;@!E`'0`+@!C`&\`;0````(!7!&P```%--5%`Z1%-53$Q)5D%. M0$=)1T%.150N0T]-```#`!U```````(!7@`!20````````"!*Q^DOJ,0
M&9UN-T!#U0"`````&1S=6QL:79A;D!G:6=A;F5T+F-O;0!33510&1S=6QL
M:79A;D!G:6=A;F5T+F-O;0`````?&@``0````H```!3$T5!0```````?
M&D``0```"P```!D’,=0!L&P:0!V&$;@!``&\<:0!G&$;@!E'0
M+@!C&\;0```!`70!````+````&0

M&\<80!N&4=N`&,`;P!M````'P`S0`$````L````9`!S`'4`;`!L`&D` M=@!A`&X`0`!G`&D`9P!A`&X`90!T`"X`8P!O`&T````"`5\0!L!3
M3510.D1354Q,259!3D!‘24=!3D54+D-/30P`\>0``````"`7$``0!L M```!P&GXJ]%F/8&!FZ1+U),L%Z6(6[+```4XFT'P!T``$````X````3@!4 M"``1!E’890!L&`<!E’(`

M:0!S'0````"0D00```%T+``!9"P``%R8``$Q:1G5)2A,3P\*‘)C<&M,C6",@-#:‘1M;#$#,#!P'W"H"I/C@!C:,$P’-E=#@!Q,"@/\0P!0
M!%8(50>R$=4.40,!W1#7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IEU)_W:0
M6A’;(*A"V-#xxxxx@_3K5_S’+T<aczb6>@=M@@I(!GP*O\@_S<br>M'__T+P;?]D_W7_AO^7_ZC_N?SP=_"(\)GTA624$1'Q(O_P//!-\%[Q9_'E\?<br>M;_]&gt;3_(9\BKQ,_%$\57R;?%W\8C_\9GQJO&amp;[\<sr>M+$\COR3/)=\PGW<x>Y(9#6E!Bv-r:7MCZU4WZ!;$'9)ZH$Z(*F:7GJD'G60''P1H!O<t>M00]"'T,O^Z9&gt;7W!UN"!&amp;5@[%1Q](+_])-<upo9>M+3<s2>$O0DSK<br>ML$M1\%5/5$5='V*?,S]G[XU&gt;QS75P6503T19,ET78\!IKS1Q-URA2%1-"DQ/<br>ML'UN8````!\1Q!````'@```&amp;T90!S',80!G&amp;4+P!R&amp;88PX#(<br>M,@```````PF```````##8```````,WC_I_0```P#Q/PD$```#/T_Y0<br>M!`<``!````-@```%L;@!T&090!V%T(!/&amp;8(!/$D1!S"``<br>M80!N&0(!)$\0P!4$P

M````“P#V$``````?/,00```$H```!2$4)0S$$(!;&amp;X=!D&4<br>M=@!=”``3P!F`”``3P!)`$0`

M`$T`3````````@%'``$````R````8SU54SMA/4U#23MP/6US9G0[;#U2140M
M35-'+3`U+3`P,3(Q.3(P,S`R-EHM,S4T,P````(!^3\!````40````````#<
MIT#(P$(0&K2Y"``K+^&"`0`````````O3SU-24-23U-/1E0O3U4]3D]25$A!
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(!
M`````````"]//4U)0U)/4T]&5"]/53U.3U)42$%-15))0T$O0TX]4D5#25!)
M14Y44R]#3CTS-34S.3``````'P#Z/P$````:````10!L`&D`>0!A`',`(`!9
M`&$`:P!U`&(``````!\`.4`!````#@```#,`-0`U`#,`.0`P``````!```

M3,M;__AIP`%```@P>"-(^P)JP`$?`!H``0```!(```!)`%``30`N`$X`3P!4
M`$4``````!\`-P`!````/@```%(`10`Z`"``6P!N`'0`9`!E`'8`70`@`$\`
M9@`@`$\`20!$`',`(`!A`&X`9``@`$D`3P!#`%0`3`!S```````?`#T``0``
M``H```!2`$4`.@`@```````?`!T.`0```#8```!;`&X`=`!D`&4`=@!=`"``
M3P!F`"``3P!)`$0`

M````G@```#P`,``Q`#(`10`T`$0`.``S`#4`-``Y`#$`00`R`#0`.``Y`$(`
M0@`S`$(`.0!!`$0`-P!&`#``.``V`$8`1@`R`#0`.``X`#4`.`!$`$``<@!E
M`&0`+0!M`',`9P`M`#``-0`N`'(`90!D`&T`;P!N`&0`+@!C`&\`<@!P`"X`
M;0!I`&,`<@!O`',`;P!F`'0`+@!C`&\`;0`^```````+`"D```````L`(P``
M`````P`&$.[6F&@#````@0`0```&4`
M``!70D5-+5=-24E35$A%3TY,64U34D5#3TU-14Y$141705E&3U)54T5205!0
M4U1/24Y415)!0U17251(3D1)4TU)3DE03U)41%))5D524U-)3D-%5TU)25-.
M3U1&54Q,64%604E,``````(!?P`!````3P```#PP,3)%-$0X,S4T.3%!,C0X
M.4)",T(Y040W1C`X-D9&,C0X.#4X1$!R960M;7-G+3`U+G)E9&UO;F0N8V]R
4<"YM:6-R;W-O9G0N8V]M/@``1(T=
`
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

I’m running Windows 2000. Where is documentation on WBEM-WMI?

Thanks.

Dave Feustel
Fort Wayne, Indiana
1-219-483-1857

----- Original Message -----
From: “Eliyas Yakub”
To: “NT Developers Interest List”
Sent: Tuesday, December 19, 2000 3:30 PM
Subject: [ntdev] RE: Of OIDs and IOCTLs

WBEM-WMI is the only MS recommended way for userapps to interact with NDIS
miniport drivers. Since WMI is not fully available on NT4.0 and some 9x
platforms, developers resort to various other techniques for compatibility
reasons. Someone in comp.os*.kernel-mode newsgroup summarized all the
techniques - which one works where, how it works etc. So please search the
archive.

If you are targetting your driver for Me and Win2K++ platforms, I would
recommend WMI interface. We have a sample driver (e100bex) in the Whistler
DDK with an user app (testwmi) that demonstrates this interface clearly.

-Eliyas

-----Original Message-----
From: xxxxx@giganet.com
Sent: Mon 12/18/2000 5:00 PM
To: NT Developers Interest List
Cc:
Subject: [ntdev] Of OIDs and IOCTLs

This is a repost. With the list problems over the weekend and my companies
moving, I’m not sure this made it out or replies made it to me.

We’ve been working on an NDIS miniport and require some method of
controling and querying it. OIDs are mentioned quite frequently in the DDK
and it looks fairly straight forward to generate custom OIDs.

The question is how would a user level program work with them. A coworker
mentions that in a previous job they used CreateFile and DeviceIoControl to
send OIDs to a miniport. I haven’t been able to find that process
documented in the SDK or DDK. That is, I can’t see where it is documented
that sending an OID as if it were an IOCTL is a valid thing to do.

Do OIDs work this way?
If not, how do I do send an OID from a user application?

TIA
Dan


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

--------------------------------------------------------------------------------


You are currently subscribed to ntdev as: xxxxx@mindspring.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


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

in the platform sdk.

-----Original Message-----
From: David Feustel [mailto:xxxxx@mindspring.com]
Sent: Wednesday, December 20, 2000 4:57 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Of OIDs and IOCTLs

I’m running Windows 2000. Where is documentation on WBEM-WMI?

Thanks.

Dave Feustel
Fort Wayne, Indiana
1-219-483-1857

----- Original Message -----
From: “Eliyas Yakub”
To: “NT Developers Interest List”
Sent: Tuesday, December 19, 2000 3:30 PM
Subject: [ntdev] RE: Of OIDs and IOCTLs

WBEM-WMI is the only MS recommended way for userapps to interact with NDIS
miniport drivers. Since WMI is not fully available on NT4.0 and some 9x
platforms, developers resort to various other techniques for compatibility
reasons. Someone in comp.os*.kernel-mode newsgroup summarized all the
techniques - which one works where, how it works etc. So please search the
archive.

If you are targetting your driver for Me and Win2K++ platforms, I would
recommend WMI interface. We have a sample driver (e100bex) in the Whistler
DDK with an user app (testwmi) that demonstrates this interface clearly.

-Eliyas

-----Original Message-----
From: xxxxx@giganet.com
Sent: Mon 12/18/2000 5:00 PM
To: NT Developers Interest List
Cc:
Subject: [ntdev] Of OIDs and IOCTLs

This is a repost. With the list problems over the weekend and my companies
moving, I’m not sure this made it out or replies made it to me.

We’ve been working on an NDIS miniport and require some method of
controling and querying it. OIDs are mentioned quite frequently in the DDK
and it looks fairly straight forward to generate custom OIDs.

The question is how would a user level program work with them. A coworker
mentions that in a previous job they used CreateFile and DeviceIoControl to
send OIDs to a miniport. I haven’t been able to find that process
documented in the SDK or DDK. That is, I can’t see where it is documented
that sending an OID as if it were an IOCTL is a valid thing to do.

Do OIDs work this way?
If not, how do I do send an OID from a user application?

TIA
Dan


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

----------------------------------------------------------------------------
----


You are currently subscribed to ntdev as: xxxxx@mindspring.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@veritas.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


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

DDK documents WMI interface and SDK documents WBEM.

-----Original Message-----
From: David Feustel
Sent: Wed 12/20/2000 4:56 AM
To: NT Developers Interest List
Cc:
Subject: [ntdev] RE: Of OIDs and IOCTLs

I’m running Windows 2000. Where is documentation on WBEM-WMI?

Thanks.

Dave Feustel
Fort Wayne, Indiana
1-219-483-1857

----- Original Message -----
From: “Eliyas Yakub”
To: “NT Developers Interest List”
Sent: Tuesday, December 19, 2000 3:30 PM
Subject: [ntdev] RE: Of OIDs and IOCTLs

WBEM-WMI is the only MS recommended way for userapps to interact with NDIS
miniport drivers. Since WMI is not fully available on NT4.0 and some 9x
platforms, developers resort to various other techniques for compatibility
reasons. Someone in comp.os*.kernel-mode newsgroup summarized all the
techniques - which one works where, how it works etc. So please search the
archive.

If you are targetting your driver for Me and Win2K++ platforms, I would
recommend WMI interface. We have a sample driver (e100bex) in the Whistler
DDK with an user app (testwmi) that demonstrates this interface clearly.

-Eliyas

-----Original Message-----
From: xxxxx@giganet.com
Sent: Mon 12/18/2000 5:00 PM
To: NT Developers Interest List
Cc:
Subject: [ntdev] Of OIDs and IOCTLs

This is a repost. With the list problems over the weekend and my companies
moving, I’m not sure this made it out or replies made it to me.

We’ve been working on an NDIS miniport and require some method of
controling and querying it. OIDs are mentioned quite frequently in the DDK
and it looks fairly straight forward to generate custom OIDs.

The question is how would a user level program work with them. A coworker
mentions that in a previous job they used CreateFile and DeviceIoControl to
send OIDs to a miniport. I haven’t been able to find that process
documented in the SDK or DDK. That is, I can’t see where it is documented
that sending an OID as if it were an IOCTL is a valid thing to do.

Do OIDs work this way?
If not, how do I do send an OID from a user application?

TIA
Dan


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

----------------------------------------------------------------------------
----


You are currently subscribed to ntdev as: xxxxx@mindspring.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


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>)^(@8/0:0"``$```````!``$``0&gt;0!@(Y`0```````#H``$%@`,`<br>M#@```-`'#``4``&lt;`%``'``,`'`$!"8`!`"$U-#8U,3E!-3$V138R,#0T
M.3(V,#1$,3=#13U04(Q-@#H!@$@@,#@```-‘#4<%0$,`&amp;@$!<br>M#8`$("``(``0.0!@!&lt;&amp;0``.@```$``.0#7-M]5F&amp;K``1\`,4`!
M#@#,`-0`U`#,`.0`P```````#`!I``````!\`,$`!````#@#,-0U
M#,.0P```````#!E!\`20`!````/@```%L`;@!T`&amp;0`90!V`%T`<br>M(`!2`$4`.@`@`$\`9@`@`$\`20!$`',`(`!A`&amp;X`9``@`$D`3P!#`%0`3`!S<br>M!$X`@(-Q2(1JP`$"`5L0$,`````````@2L?I+ZC$!F=;@#=<br>M`0]4`@````!$879I9"!&amp;975S=&amp;5L`%--5%``9&amp;9E=7-T96Q`;6EN9'-P<fen>M9RYC;VT``!\`9@`!````"@%,30!4%!\`9P`!````,````&amp;0`<br>M9@!E`'4`<p>M`!\`6@`!````'````$0`80!V`&amp;D`9``@`$8`90!U`',`=`!E`&amp;P````?`#)`<br>M`0```#````!D`&amp;8`90!U`',`=`!E`&amp;P`0`!M`&amp;D`;@!D`',`&lt;`!R`&amp;D`;@!G<br>M`"X`8P!O`&amp;T````"`5P``0```!T```!33510.D1&amp;15535$5,0$U)3D134%))<br>M3D<n0t>``$```!#`````````($K'Z2^HQ`9G6X`<br>MW0$/5`(`````1&amp;%V:60@1F5U<w1e>M;F<n8v>M`&amp;8`90!U`',`=`!E`&amp;P`0`!M`&amp;D`;@!D`',`&lt;`!R`&amp;D`;@!G`"X`8P!O`&amp;T`<br>M```?`%T``0```!P```!$`&amp;$`=@!I`&amp;0`(`!&amp;`&amp;4`=0!S`'0`90!L````'P`S<br>M0`$````P````9`!F`&amp;4`=0!S`'0`90!L`$``;0!I`&amp;X`9`!S`'``&lt;@!I`&amp;X`<br>M9P`N`&amp;,`;P!M`````@%?``$````=````4TU44#I$1D554U1%3$!-24Y$4U!2<br>M24Y'+D-/30`````#`!Y(!<0!````&amp;P````':H?HR$K"AH&]J$S;
M@DD+\J"!K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.?P^/$)\1KQ*$__\5_R;YD/&*^;+:open_mouth:
M][&lt;'
=+QX_)S_%3_S/A_^[___C&amp;@2]"3$]#2^!154]412V_,S\#WQLX<br>MCR]G-;?A-?!/1%DO=2TT8#I/!1$W+4%(5!1-3"!0?3\````?$<00```!X
M``!M&amp;4

M```````#-X_Z?T```,\3)!````P#]/^0$```?'```0```#X```!;&X<br>M=!D&amp;4=@!="``4@!%#H(!/&amp;8(!/$D1!S"``80!N&0(!)
M$\0P!4$P

M(`!;`&X`=`!D`&4`=@!=`"``4@!%`"4`,P!!`"``3P!F`"``3P!)`$0`

M`&$`;@!D`"``20!/`$,`5`!,`',`+@!%`$T`3```````"P#T$``````+`/40
M``````L`]A```````@%'``$````P````8SU54SMA/4U#23MP/6US9G0[;#U2
M140M35-'+3`U+3`P,3(R,#$U,C`P-UHM-C$``@'Y/P$```!1`````````-RG
M0,C`0A`:M+D(`"LOX8(!`````````"]//4U)0U)/4T]&5"]/53U.3U)42$%-
M15))0T$O0TX]4D5#25!)14Y44R]#3CTS-34S.3``````'P#X/P$````:````
M10!L`&D`>0!A`',`(`!9`&$`:P!U`&(``````!\`.$`!````#@```#,`-0`U
M`#,`.0`P```````"`?L_`0```%$`````````W*=`R,!"$!JTN0@`*R_A@@$`
M````````+T\]34E#4D]33T94+T]5/4Y/4E1(04U%4DE#02]#3CU214-)4$E%
M3E13+T-./3,U-3,Y,``````?`/H_`0```!H```!%`&P`:0!Y`&$`

M80!K`'4`8@``````'P`Y0`$````.````,P`U`#4`,P`Y`#```````$``!S`W
MNQ7PEVK``4``"#">6-YWF&K``1\`&@`!````$@```$D`4`!-`"X`3@!/`%0`
M10``````'P`W``$```!&````4@!%`#H`(`!;`&X`=`!D`&4`=@!=`"``4@!%
M`#H`(`!/`&8`(`!/`$D`1`!S`"``80!N`&0`(`!)`$\`0P!4`$P`

M'P`]``$````*````4@!%`#H`(```````'P`=#@$````^````6P!N`'0`9`!E
M`'8`70`@`%(`10`Z`"``3P!F`"``3P!)`$0`

M5`!,`',``````!\`-1`!````G@```#P`,``Q`#(`10`T`$0`.``S`#4`-``Y
M`#$`00`R`#0`.``Y`$(`0@`S`$(`.0!!`$0`-P!&`#``.``V`$8`1@`R`#0`
M.``X`#4`.0!!`$``<@!E`&0`+0!M`',`9P`M`#``-0`N`'(`90!D`&T`;P!N
M`&0`+@!C`&\`<@!P`"X`;0!I`&,`<@!O`',`;P!F`'0`+@!C`&\`;0`^````
M```+`"D```````L`(P```````P`&$"Y*5KP#``<03P@```,`$!```````P`1
M$``````>``@0`0```&4```!$1$M$3T-5345.5%-734E)3E1%4D9!0T5!3D13
M1$M$3T-5345.5%-70D5-+2TM+2U/4DE'24Y!3$U%4U-!1T4M+2TM+4923TTZ
M1$%6241&15535$5,4T5.5#I7140Q,B\R,"\R``````(!?P`!````3P```#PP
M,3)%-$0X,S4T.3%!,C0X.4)",T(Y040W1C`X-D9&,C0X.#4Y04!R960M;7-G
C+3`U+G)E9&UO;F0N8V]R<"YM:6-R;W-O9G0N8V]M/@``ZT$=
`
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