Groups | Blog | Home
all groups > dotnet compact framework > march 2005 >

dotnet compact framework : RequestPowerNotifications question


Tim Johnson
3/22/2005 8:25:09 PM
I'm looking into using this API from C# using P/invoke, but one enum I need
is called PBT_TRANSITION. I don't know what its value is, and I cannot
figure out where this thing is defined in any of the files I have for evc4.0
or Visual Studio .Net. Anybody have a clue?

--

Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625


Alex Feinman [MVP]
3/22/2005 8:46:56 PM
http://www.alexfeinman.com/download.asp?doc=powerawareapp.zip


--
Alex Feinman
---
Visit http://www.opennetcf.org
[quoted text, click to view]
Tim Johnson
3/22/2005 9:17:53 PM
Exactly right - I have no idea why my various find-in-files missed that one!

--

Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625


[quoted text, click to view]

Tim Johnson
3/22/2005 9:18:36 PM
It's a beautiful thing - thank you for the great sample code!

--

Tim Johnson
High Point Software, Inc.
www.high-point.com
(503) 312-8625


[quoted text, click to view]

Tim Wilson
3/22/2005 11:47:42 PM
I did a quick search and got the define, below, from the "pm.h" header file
that I believe I acquired as part of the PPC 2003 SDK.
#define PBT_TRANSITION 0x00000001 // broadcast specifying system
power state transition

--
Tim Wilson
..Net Compact Framework MVP

[quoted text, click to view]

AddThis Social Bookmark Button