DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Sun, 19 Aug 2007 13:12:02 +0300,    posted on: microsoft.public.dotnet.framework.compactframework        back       

Thread Index
  1    Empi
          2    ctacke/ ctacke[at]opennetcf[dot]com
          3    Simon Hart
          4    ctacke/ ctacke[at]opennetcf[dot]com


Power On/Off notification   
Hi,

Is there a nice way of capturing the on off button?
I managed to find several articled on c++, but no c# regarding the 
RequestPowerNotifications function.
I'll appreciate any link to an article about it.

Thanks.
Date:Sun, 19 Aug 2007 13:12:02 +0300   Author:  

Re: Power On/Off notification   
You'll use the same API calls as C does, just through P/Invoke.


-- 

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com


"Empi"  wrote in message 
news:eUlCklk4HHA.4712@TK2MSFTNGP04.phx.gbl...

> Hi,
>
> Is there a nice way of capturing the on off button?
> I managed to find several articled on c++, but no c# regarding the 
> RequestPowerNotifications function.
> I'll appreciate any link to an article about it.
>
> Thanks.
> 
Date:Sun, 19 Aug 2007 10:07:41 -0500   Author:  

RE: Power On/Off notification   
If my memory serves me correct, I think OpenNETCF wrote a managed wrapper for 
this.

-- 
Simon Hart
http://simonrhart.blogspot.com


"Empi" wrote:


> Hi,
> 
> Is there a nice way of capturing the on off button?
> I managed to find several articled on c++, but no c# regarding the 
> RequestPowerNotifications function.
> I'll appreciate any link to an article about it.
> 
> Thanks. 
> 
> 
> 
Date:Mon, 20 Aug 2007 10:52:01 -0700   Author:  

Re: Power On/Off notification   
Indeed we do.  We have it through the Notification manager or the Power 
Manager:

http://opennetcf.com/library/sdf/html/df1f43f7-372f-d2f4-93a0-9bb464cc0f3d.htm
http://opennetcf.com/library/sdf/html/4839542c-8414-c366-8bcd-0ee911b01ca7.htm
http://opennetcf.com/library/sdf/html/165162f9-5d9f-bd61-76b2-3091ebfbe98a.htm


-- 

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com




"Simon Hart"  wrote in message 
news:0362B7F0-B3AF-46BE-82E8-AD1EBFF74E1F@microsoft.com...

> If my memory serves me correct, I think OpenNETCF wrote a managed wrapper 
> for
> this.
>
> -- 
> Simon Hart
> http://simonrhart.blogspot.com
>
>
> "Empi" wrote:
>
>> Hi,
>>
>> Is there a nice way of capturing the on off button?
>> I managed to find several articled on c++, but no c# regarding the
>> RequestPowerNotifications function.
>> I'll appreciate any link to an article about it.
>>
>> Thanks.
>>
>>
>> 
Date:Mon, 20 Aug 2007 13:26:18 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us