471,326 Members | 1,827 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,326 software developers and data experts.

How to create a new PowerScheme and set its Settings through C#

Hi

I would like to create a new power scheme and set its settings
appropriately. Are there any APIs available in .Net?

If not please suggest me, how can I achieve this through C# code.

Thanks
Cnu
Jul 22 '08 #1
3 1259
Cnu,

There are no .NET apis that expose the power management functionality.
You can make the calls to the API for power management through the P/Invoke
layer. The reference for the power management functions is here:

http://msdn.microsoft.com/en-us/libr...63(VS.85).aspx

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Duggi" <Du***************@gmail.comwrote in message
news:d3**********************************@m3g2000h sc.googlegroups.com...
Hi

I would like to create a new power scheme and set its settings
appropriately. Are there any APIs available in .Net?

If not please suggest me, how can I achieve this through C# code.

Thanks
Cnu

Jul 22 '08 #2
On Jul 22, 11:56*pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Cnu,

* * There are no .NET apis that expose the power management functionality.
You can make the calls to the API for power management through the P/Invoke
layer. *The reference for the power management functions is here:

http://msdn.microsoft.com/en-us/libr...63(VS.85).aspx

--
* * * * * - Nicholas Paldino [.NET/C# MVP]
* * * * * - m...@spam.guard.caspershouse.com

"Duggi" <DuggiSrinivasa...@gmail.comwrote in message

news:d3**********************************@m3g2000h sc.googlegroups.com...
Hi
I would like to create a new power scheme and set its settings
appropriately. Are there any APIs available in .Net?
If not please suggest me, how can I achieve this through C# code.
Thanks
Cnu- Hide quoted text -

- Show quoted text -
Thanks for the reply. I think there is no other way of doing it...

-Cnu
Jul 24 '08 #3
On Jul 22, 11:56*pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Cnu,

* * There are no .NET apis that expose the power management functionality.
You can make the calls to the API for power management through the P/Invoke
layer. *The reference for the power management functions is here:

http://msdn.microsoft.com/en-us/libr...63(VS.85).aspx

--
* * * * * - Nicholas Paldino [.NET/C# MVP]
* * * * * - m...@spam.guard.caspershouse.com

"Duggi" <DuggiSrinivasa...@gmail.comwrote in message

news:d3**********************************@m3g2000h sc.googlegroups.com...
Hi
I would like to create a new power scheme and set its settings
appropriately. Are there any APIs available in .Net?
If not please suggest me, how can I achieve this through C# code.
Thanks
Cnu- Hide quoted text -

- Show quoted text -
Hi

I do not see any API that helps to set "Turn off Monitor" value of the
current power scheme. Can you please help me with some sample code
please.

-Cnu
-Cnu
Jul 24 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by David Elliott | last post: by
2 posts views Thread by Danny Springer | last post: by
3 posts views Thread by Luke Smith | last post: by
2 posts views Thread by Joe Rattz | last post: by
reply views Thread by Dale | last post: by
4 posts views Thread by =?Utf-8?B?SlA=?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.