Thread: Detect and disable network cards

  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    2

    Detect and disable network cards

    Hey

    I have an application in c# that i don't want it to connect to the internet in a virtual enironment, like virtualbox, vmware virtual pc and so on.
    Therefore i though that disabling the virtual network card inside the virtual machine would be a good idea.

    Do anyone know how to do that?

    Or any other idea that can push me in the right direction. Thanks.http://forums.codeguru.com/images/smilies/smile.gif

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    41
    If Blizzard can't do it (WoW vs WoWGlider), I doubt you'll be able to do so.

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    2
    Quote Originally Posted by Momerath View Post
    If Blizzard can't do it (WoW vs WoWGlider), I doubt you'll be able to do so.

    So then i guess students can cheat anyway.

    Penn and paper forever!

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    You can disable a network interface using WMI or executing a command-line tool. However, there's no way to stop the user from just re-enabling the interface.
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Network queston for users with mixed OS on their network...
    By CommonTater in forum Networking/Device Communication
    Replies: 8
    Last Post: 09-10-2011, 08:56 PM
  2. detect network device when using libpcap in ubuntu
    By contau in forum C Programming
    Replies: 0
    Last Post: 05-27-2011, 10:51 AM
  3. Replies: 2
    Last Post: 12-13-2009, 04:24 PM
  4. how get ip address on 2 network cards
    By akesayyo in forum C Programming
    Replies: 8
    Last Post: 07-04-2005, 10:15 PM
  5. how to listen to multiple Network cards in one go?
    By C beginner in forum C++ Programming
    Replies: 0
    Last Post: 08-16-2001, 12:51 AM