Article View: borland.public.cppbuilder.nativeapi
Article #7383Re: bool IsLaptop() {/* Can the laptop be recognized? */}
From: Bob Gonder
Date: Mon, 14 Feb 2005 20:25
Date: Mon, 14 Feb 2005 20:25
13 lines
1481 bytes
1481 bytes
Vladimir Stefanovic wrote: >I'm just considering some licensing mechanisms which allows >two PC's to be registered (Desktop+ [Laptop]). I have nothing >concrete now, just investigating... I wonder if this will work bool IsLaptop() SYSTEM_POWER_STATUS ps; GetSystemPowerStatus( &ps ) return (ps.BatteryFlag&128) != 128;
Technical Details
Message-ID:
<802211l8mpiv6j96p2lkb7dfu5okq9fifp@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.superfeed.net!propagator3-LAX.newsfeeds.com!news-in.usenet.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4210e31f@newsgroups.borland.com> <4210f13f$1@newsgroups.borland.com> <4210f8f4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c36954a06e8243a7
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: bool IsLaptop() {/* Can the laptop be recognized? */}
Date: Mon, 14 Feb 2005 12:25:56 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <802211l8mpiv6j96p2lkb7dfu5okq9fifp@4ax.com>
References: <4210e31f@newsgroups.borland.com> <4210f13f$1@newsgroups.borland.com> <4210f8f4@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: 69.69.90.173
X-Trace: newsgroups.borland.com 1108412753 69.69.90.173 (14 Feb 2005 12:25:53 -0800)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.superfeed.net!propagator3-LAX.newsfeeds.com!news-in.usenet.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail