🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.ms-windows.programmer.vxd
Article #2

Re: Can I resume a suspended Windows 95 system through a program

#2
From: dave porter
Date: Fri, 15 May 1998 00:00
52 lines
3093 bytes
If the system is suspended, the CPU ain't running, so it's
difficult to wake the system up from code.  Simulating
I/O will not help; it's the actual hardware interrupt which 
causes the chipset to wake up.

Win98 will allow timer-based wakeups via 'waitable timers',
see CreateWaitableTimer.

The implication (by omission) is that this is the only
way to wake the system up on a timer. It may require 
ACPI hardware, since pretty obviously you need a timer
that's not implemented in software.

Waitable timers do not exist in Win95 (at least the doc
says they don't). And even if they did it's not clear that
they'd have the wakeup side-effect. And even if they did
that on ACPI hardware it's not clear they'd do that on
APM hardware.

dave
-- 
For email, please remove the 'w' from my address. Sorry. 

Rohit <rohit@interpow.net> wrote in article
<3557781a.0@news.interpow.net>...
> I have a problem :-(
> 
> I'm trying to write a program to resume my PC (running Windows 95), after
> suspending it by choosing "Suspend" from the Start Menu on the task bar.
> 
> Generally, one can resume a suspended system by either moving the mouse
or
> by pressing any key on the keyboard. In my program I'm trying to resume
the
> system by using WM_TIMER. In the program I'm setting the timer to go off
> after 1 minute. When my program receives the WM_TIMER message I use
> ::mouse_event() to synthesize a mouse move. This should resume my system
but
> it doesn't. The reason being, once you suspend the system the program
> doesn't receive any WM_TIMER message.
> 
> The main objective behind this program is to be able to suspend the
system
> and then later resume it at time specified by the user of the program.
> 
> Is there a way in which I can do this using SDK,C++,VC++ or assembly
> language.
> 
> 
> 
> 
Technical Details
Message-ID: <01bd8053$68de4540$0ba17392@glastonbury>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3557781a.0@news.interpow.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 134d78,480ae734c1728692
X-Google-Attributes: gid134d78,public
X-Google-Thread: 110a07,480ae734c1728692
X-Google-Attributes: gid110a07,public
X-Google-Thread: 10a2c7,480ae734c1728692
X-Google-Attributes: gid10a2c7,public
X-Google-Thread: 114950,480ae734c1728692
X-Google-Attributes: gid114950,public
X-Google-Thread: 1163b8,480ae734c1728692
X-Google-Attributes: gid1163b8,public
X-Google-Thread: 109b8e,480ae734c1728692
X-Google-Attributes: gid109b8e,public
X-Google-Thread: 14854e,480ae734c1728692
X-Google-Attributes: gid14854e,public
From: "dave porter" <porter@wultranet.com>
Subject: Re: Can I resume a suspended Windows 95 system through a program
Date: 1998/05/15
Message-ID: <01bd8053$68de4540$0ba17392@glastonbury>
X-Deja-AN: 353649160
References: <3557781a.0@news.interpow.net>
X-Ultra-Time: 15 May 1998 22:47:43 GMT
X-Complaints-To: abuse@ultra.net
Organization: none of the above
Newsgroups: comp.ms-windows.programmer.vxd,comp.os.ms-windows.programmer.vxd,fj.os.ms-windows.programming,japan.comp.lang.visual-c++,microsoft.public.activex.programming.java.visualj,microsoft.public.USASalesInfo.Developer.VisualC++,microsoft.public.vc.activext