Article View: borland.public.cppbuilder.nativeapi
Article #9581Re: disable network card
From: Henry
Date: Mon, 21 Jun 2004 16:03
Date: Mon, 21 Jun 2004 16:03
33 lines
2320 bytes
2320 bytes
Hi Vladimir, Thank you for helping, but Borland doesn't recognize the file formats from the C++ Builder download. Is there anything special I need to do? I'm sorry, I'm very new to this stuff. "Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message news:40d6f515$1@newsgroups.borland.com... > > Hi Henry, > > Frankly you can do it as well as Device Manager can do it and > as well as you can do it with another device via Device Manager. > > For this you need to study how some functions of setupapi.dll > and cfgmgr32.dll work. you can download my code from codecentral: > (Borland C++ Builder) - http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=21175 > (C#) - http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=20338 > > See also my articles from codeproject: > .NET - Diving into System Programming (Parts 1,2,3) > http://www.codeproject.com/csharp/DivingSysProg1.asp > http://www.codeproject.com/csharp/DivingSysProg2.asp > http://www.codeproject.com/csharp/DivingSysProg3.asp > > Really I do not disable and enable devices but I am sure > that it possible via CM_Set_HW_Prof_Flags function from cfgmgr32.dll with flag CSCONFIGFLAG_DISABLE or CSCONFIGFLAG_DO_NOT_CREATE. > > May be it is subject for Part 4 in codeproject... > Vladimir.
Technical Details
Message-ID:
<40d70690$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.euro.net!62.253.162.219.MISMATCH!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40d1fde3@newsgroups.borland.com> <40d30f5f@newsgroups.borland.com> <40d31316$2@newsgroups.borland.com> <40d6f515$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,6a66ad479e448f8 X-Google-Attributes: gid10cc67,public From: "Henry" <borland@damarsystems.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40d1fde3@newsgroups.borland.com> <40d30f5f@newsgroups.borland.com> <40d31316$2@newsgroups.borland.com> <40d6f515$1@newsgroups.borland.com> Subject: Re: disable network card Date: Mon, 21 Jun 2004 11:03:31 -0500 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 24.14.115.55 Message-ID: <40d70690$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1087833744 24.14.115.55 (21 Jun 2004 09:02:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.euro.net!62.253.162.219.MISMATCH!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail