🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: bool IsLaptop() {/* Can the laptop be recognized? */}

#7287
From: Vladimir Stefanovic
Date: Tue, 15 Feb 2005 08:48
22 lines
1632 bytes
Thank you both, I'll save this in my archive.

-- 
Best regards,
Vladimir Stefanovic
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message 
news:802211l8mpiv6j96p2lkb7dfu5okq9fifp@4ax.com...
> 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: <4211b76f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4210e31f@newsgroups.borland.com> <4210f13f$1@newsgroups.borland.com> <4210f8f4@newsgroups.borland.com> <802211l8mpiv6j96p2lkb7dfu5okq9fifp@4ax.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: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4210e31f@newsgroups.borland.com> <4210f13f$1@newsgroups.borland.com> <4210f8f4@newsgroups.borland.com> <802211l8mpiv6j96p2lkb7dfu5okq9fifp@4ax.com>
Subject: Re: bool IsLaptop() {/* Can the laptop be recognized? */}
Date: Tue, 15 Feb 2005 09:48:54 +0100
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.117.212.65
Message-ID: <4211b76f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108457327 82.117.212.65 (15 Feb 2005 00:48:47 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail