🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Power Down NIC Card Settings

#3465
From: Bob Gonder
Date: Tue, 13 Jun 2006 16:12
17 lines
1737 bytes
Colin B Maharaj wrote:

>Hi all I have been looking all over for this, basically I have an 
>application that works via a network connection, except sometimes the 
>application gets installed on PCs where the O/S settings for the NIC 
>says, that it will power DOWN the NIC card to save power.
>
>How can I detect this setting (and maybe change it).

Looks like IOCTL() with IOCTL_POWER_CAPABILITIES
But the docs on that were for CE.

Might look at SetThreadExecutionState()
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/setthreadexecutionstate.asp

Also, this looks promising....Power Profile Functions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/power/base/power_profile_functions.asp?frame=true
Technical Details
Message-ID: <lfnt82lnocksbnrtlvpatsk4kvr6o4obaf@4ax.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <448e0582$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,58e05390a00abfa7
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Power Down NIC Card Settings
Date: Tue, 13 Jun 2006 09:12:01 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <lfnt82lnocksbnrtlvpatsk4kvr6o4obaf@4ax.com>
References: <448e0582$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.144.198
X-Trace: newsgroups.borland.com 1150215119 67.77.144.198 (13 Jun 2006 09:11:59 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail