🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7485

Re: Enable/Disable network card

#7485
From: Vladimir Afanasyev
Date: Fri, 21 Jan 2005 12:51
23 lines
1729 bytes
Hi,

"Sara T." <sarana@infoquest.co.th> wrote:
>Does windows provide an api to set enable/disable network card ?
>
>Or anyboby knows some module, please advise
>
>


Exist way to disable any device the way as Device Manager do it.
So for network card also.

Most of this functions from DDK and located in cfgmgr32.dll - 
Configuration Manager. I never do it but You can find how to 
work with Configuration Manager in "Hardware configuration in 
Windows" http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=20338

BTW for disabling you can use CM_Set_HW_Prof_Flags function 
from cfgmgr32.dll with flag CSCONFIGFLAG_DISABLE or 
CSCONFIGFLAG_DO_NOT_CREATE. 
Vladimir.
Technical Details
Message-ID: <41f0fabc$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41f0e2f6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9245f72e0386a948
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua>
Subject: Re: Enable/Disable network card
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 83.218.237.46     
X-Forwarded-For: unknown
References:  <41f0e2f6$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41f0fabc$1@newsgroups.borland.com>
Date: 21 Jan 2005 04:51:08 -0800
X-Trace: newsgroups.borland.com 1106311868 207.105.83.66 (21 Jan 2005 04:51:08 -0800)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail