Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to enable disable Hibernation option by using C# code.

How to enable disable Hibernation option by using C# code.

Scheduled Pinned Locked Moved C#
csharptutorial
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Piyush Vaishnav
    wrote on last edited by
    #1

    Hi All, I wanted to get that hibernation option is enabled in system or not. If it is enable then wanted to disable this option. Thanks in Advance.. Piyush

    P P D L 4 Replies Last reply
    0
    • P Piyush Vaishnav

      Hi All, I wanted to get that hibernation option is enabled in system or not. If it is enable then wanted to disable this option. Thanks in Advance.. Piyush

      P Offline
      P Offline
      Pravin Patil Mumbai
      wrote on last edited by
      #2

      Maybe you will have to edit the Registry through C#.NET. Refer : 1. http://support.microsoft.com/kb/893056[^] 2. Working with Registry in .NET[^] Hope this helps. All the best.

      1 Reply Last reply
      0
      • P Piyush Vaishnav

        Hi All, I wanted to get that hibernation option is enabled in system or not. If it is enable then wanted to disable this option. Thanks in Advance.. Piyush

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        I doubt your users want you to do that.

        1 Reply Last reply
        0
        • P Piyush Vaishnav

          Hi All, I wanted to get that hibernation option is enabled in system or not. If it is enable then wanted to disable this option. Thanks in Advance.. Piyush

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          This is normally done by using Group Policy, not by any code in an application.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          1 Reply Last reply
          0
          • P Piyush Vaishnav

            Hi All, I wanted to get that hibernation option is enabled in system or not. If it is enable then wanted to disable this option. Thanks in Advance.. Piyush

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Did you try WMI?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups