Disable network card

Dear all:
I wrote an UpperFilter driver of USB and disables the USB devices by
marking the IRP_MJ_READ, IRP_MJ_WRITE, IRP_MJ_DEVICE_CONTROL,
IRP_MJ_INTERNAL_DEVICE_CONTROL requests failed。
status = STATUS_ACCESS_DENIED;
Irp->IoStatus.Status = status;
Irp->IoStatus.Information = 0;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return status;
Now I want to disable the network cards too,I simply set it as the
UpperFilter of NET。 It can work under windows xp,but under win7 it can not
work。
I'm not familiar with drivers。Is there any way to disable the network
cards?
Any suggestions would be greatly appreciate;

Best Regards
YuanHao
msn:xxxxx@gmail.com

You disable the box in user mode, the devcon sample shows how.

d

dent from a phpne with no keynoard


From: $BjO9@(B
Sent: October 10, 2010 6:50 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Disable network card

Dear all$B!‘(B
I wrote an UpperFilter driver of USB and disables the USB devices by marking the IRP_MJ_READ$B!$(B IRP_MJ_WRITE$B!$(B IRP_MJ_DEVICE_CONTROL$B!$(B IRP_MJ_INTERNAL_DEVICE_CONTROL requests failed$B!#(B
status = STATUS_ACCESS_DENIED;
Irp->IoStatus.Status = status;
Irp->IoStatus.Information = 0;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return status;
Now I want to disable the network cards too$B!$(BI simply set it as the UpperFilter of NET$B!#(B It can work under windows xp$B!$(Bbut under win7 it can not work$B!#(B
I’m not familiar with drivers$B!#(BIs there any way to disable the network cards?
Any suggestions would be greatly appreciate;

Best Regards
YuanHao
msn$B!’(xxxxx@gmail.commailto:xxxxx
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx>