🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Prevent hibernation?

#16060
From: Randy
Date: Mon, 02 Jun 2003 14:35
6 lines
1172 bytes
My program is transmitting a file via the serial port to another PC.
If the PC my program is running on goes into
suspend/hibernate/whatever mode, the file transfer is interupted.

Is there a way to programatically prevent hibernation temporarily? I'm 
running on WinNT / 2000 / XP
Technical Details
Message-ID: <MPG.19452ad7d51f307398968c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2e7034bb10b2b8f4,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-02 07:41:40 PST
From: Randy <banjolicious@netscape.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Prevent hibernation?
Date: Mon, 2 Jun 2003 10:35:52 -0400
Message-ID: <MPG.19452ad7d51f307398968c@newsgroups.borland.com>
Organization: Dorsett's, Inc
X-Newsreader: MicroPlanet Gravity v2.50
NNTP-Posting-Host: 65.40.171.196
X-Trace: newsgroups.borland.com 1054564550 65.40.171.196 (2 Jun 2003 07:35:50 -0700)
Lines: 6
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail