-
Code:
char driverName[] = "\\\\.\\\\NdisProt";
HANDLE driver = CreateFile(driverName, GENERIC_WRITE|GENERIC_READ,
0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 );
what is this Ndis driver?
sorry for the stupid question, it's just I've never used drivers before.
-
It's the driver from here:
http://www.thecodeproject.com/csharp/SendRawPacket.asp
NDIS is a specification for network adapters. If a networ card is NDIS-compatible, Windows can use it.
-
but a computer can have more than one nic... how can i control it then?
btw... i've read the "code project" link, and it says i gotta install the driver, before i could use it.
could it be why i get an error when i tru to run the program - kernel32.dll ?
-
You can enumerate the adapters and choose to use any adaper.
Yes, you'll need to install the driver.
-
so there is no way to make a plug and play program!?
-
Well, you could make an installer that installs the program along with the driver.