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

  • Thread starter Thread starter Duggi
  • Start date Start date
D

Duggi

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
 
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/library/aa373163(VS.85).aspx

--
          - Nicholas Paldino [.NET/C# MVP]
          - (e-mail address removed)




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
 
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/library/aa373163(VS.85).aspx

--
          - Nicholas Paldino [.NET/C# MVP]
          - (e-mail address removed)




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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top