Article View: borland.public.cppbuilder.nativeapi
Article #3607Re: SetSystemPowerState issues
From: Bob Gonder
Date: Sat, 20 May 2006 14:50
Date: Sat, 20 May 2006 14:50
15 lines
1547 bytes
1547 bytes
Mike Collins wrote: >By the way, is there aomething specific you need to do to use the functions >in powrprof.h? You would want to link with the lib file. But it sounds like if you did, then your application wouldn't run on a 95 system. With LoadLibrary, you could detect that, and disable the specials. To get a lib file to link with, locate the dll, and use implib on it. >Do you have to dynamically load the DLL and use GetProcAddress? Might be best, if you need to also support Win95.
Technical Details
Message-ID:
<aoau625v8ggpqap5v0j1ac7qp7q2164lv1@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<446de84c@newsgroups.borland.com> <hi3s625hiq004edghi6b2c57otqvstpehp@4ax.com> <446f0fe1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a40f30873ebce91c 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: SetSystemPowerState issues Date: Sat, 20 May 2006 07:50:29 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <aoau625v8ggpqap5v0j1ac7qp7q2164lv1@4ax.com> References: <446de84c@newsgroups.borland.com> <hi3s625hiq004edghi6b2c57otqvstpehp@4ax.com> <446f0fe1$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: 71.0.33.27 X-Trace: newsgroups.borland.com 1148136625 71.0.33.27 (20 May 2006 07:50:25 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail