Jump to content

Recording Service - Verhindern von Standby/Ruhezustand während Aufnahm


Shivan

Recommended Posts

Hi,

 

mir ist es nun schon öfters passiert, dass ich aus versehen meinen Computer in Ruhezustand versetze, obwohl der Recording Service gerade etwas aufnimmt.

 

Das ist dann ziemlich nervig ;)

 

Schön wärs, wenn der Recording Service dies erkennen würde und/oder zumindest eine Meldung bringen würde mit Ja/Nein...

 

Unter XP gab es ja nen Broadcast entsprechend.

 

Unter Vista und aufwärts gehts wohl damit:

[RegisterPowerSettingNotification Function]

http://msdn.microsoft.com/en-us/library/aa373196(VS.85).aspx

 

"PBT_APMQUERYSUSPEND (0x0), Request for permission

to suspend. In Windows Server 2008 and Windows Vista,

use the SetThreadExecutionState function instead." :

 

[setThreadExecutionState Function]

http://msdn.microsoft.com/en-us/library/aa373208(VS.85).aspx

Hier wäre noch ein Event:

http://msdn.microsoft.com/en-us/library/microsoft.win32.powermodechangedeventargs.aspx

 

Hier wird die Technik auch interessant beschrieben:

http://msdn.microsoft.com/de-de/magazine/cc163386.aspx

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...