Thread: constructing frames...

  1. #16
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    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.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  2. #17
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    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.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #18
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    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 ?
    Last edited by Devil Panther; 08-07-2004 at 08:35 AM.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  4. #19
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    You can enumerate the adapters and choose to use any adaper.
    Yes, you'll need to install the driver.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  5. #20
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    so there is no way to make a plug and play program!?
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  6. #21
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Well, you could make an installer that installs the program along with the driver.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I don't get weak_ptr's?
    By cpjust in forum C++ Programming
    Replies: 13
    Last Post: 12-09-2008, 01:28 AM
  2. Jumbo Frames - sort of working
    By bj00 in forum Networking/Device Communication
    Replies: 1
    Last Post: 07-23-2007, 10:29 AM
  3. How to send Jumbo frames ?
    By thaipham in forum Networking/Device Communication
    Replies: 9
    Last Post: 06-21-2005, 10:36 AM
  4. A question about constructors...
    By Wolve in forum C++ Programming
    Replies: 9
    Last Post: 05-04-2005, 04:24 PM
  5. network programming in C, frames issue
    By n3tw0rk in forum C Programming
    Replies: 0
    Last Post: 06-07-2003, 08:36 AM