View Full Version : Re: Program / API to put monitor to sleep


Lawrence D'Oliveiro
06-24-2003, 10:22 AM
In article <t4n7fv8th9t409m49c2i9sjl4ksqlh7u1f[at]4ax.com>,
Brian Medley <nonexistant[at]verizon.net> wrote:

>> * SetDimSuspendState()
>
>The above funcction seems to be most
>promising for what I want todo. However, I created a small program
>that used it, but it did not seem to do anything.

I don't know, maybe you need to call DimmingControl(true) first or
something. Did you manage to find any actual documentation for those
calls?

Brian Medley
06-27-2003, 04:01 AM
On Tue, 24 Jun 2003 21:22:26 +1200, Lawrence D'Oliveiro
<ldo[at]geek-central.gen.new_zealand> wrote:

> I don't know, maybe you need to call DimmingControl(true) first or
> something. Did you manage to find any actual documentation for those
> calls?

I guess I should have looked first:

*** begin doc ***
http://developer.apple.com/documentation/Carbon/Reference/Power_Manager/01powermanager/function_group_7.html#//apple_ref/c/func/SetDimSuspendState

Availability

Supported in Carbon. Available in CarbonLib 1.0 and later when
PowerMgr 1.1 or later is present. Available in Mac OS X 10.0 and
later.

Header: Power.h

Carbon Porting Notes

Calling this function on Mac OS X does nothing. Although available
through Carbon on Mac OS X, SetDimSuspendState is unimplemented.
*** end doc ***

The part about being unimplemented in OS X seems significant...:{