Closed Thread
Results 1 to 5 of 5

Thread: C# to disable a device

  1. #1
    NeedHelp Guest

    C# to disable a device

    I'd like to disable and enable certain devices such as a webcam. Is it possible to disable a device using C#?

  2. CODECALL Circuit advertisement

     
  3. #2
    hoser2001's Avatar
    hoser2001 is offline Programmer
    Join Date
    Jul 2006
    Posts
    175
    Rep Power
    0
    you need to look into win32 API, as this is the lowest level access to the operating system allowed through C#

  4. #3
    NeedHelp Guest
    Would c++ be a better choice then? These APIs are unmanaged, correct?

  5. #4
    hoser2001's Avatar
    hoser2001 is offline Programmer
    Join Date
    Jul 2006
    Posts
    175
    Rep Power
    0
    IF C++ is a different option sure, I was able to find better resources for this in C++. I also would like to take back that which I said about NEEDING the API , check out the system.management namespace and see if there is anything useful there before you start with the API. Here is a good source for using API with C++
    http://www.codeproject.com/dotnet/Wi...ustoDotNET.asp
    good luck and happy coding.

  6. #5
    NeedHelp Guest
    Thanks, I'll check it out!

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Is it possible to detect an usb device when the device is plugged in??
    By yonghan in forum Visual Basic Programming
    Replies: 6
    Last Post: 02-07-2011, 04:47 AM
  2. disable keys
    By gor in forum Pascal and Delphi
    Replies: 2
    Last Post: 12-10-2009, 04:10 AM
  3. disable
    By YAR in forum C# Programming
    Replies: 3
    Last Post: 12-29-2008, 10:45 AM
  4. Disable device from CMD
    By TcM in forum Computer Software/OS
    Replies: 7
    Last Post: 01-04-2008, 06:51 AM
  5. Disable internet
    By pankaj2007 in forum Java Help
    Replies: 1
    Last Post: 04-23-2007, 09:28 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts