home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Wakeup from standby
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Anonymous" data-source="post: 3817"><p>I've found a very simle API to make the system hibernate.</p><p>I made a try in VB6 but I guess it will run in .net to.</p><p></p><p>------- code used on a form in VB ----------</p><p>Private Declare Function SetSuspendState Lib "Powrprof" (ByVal Hibernate As Long, ByVal ForceCritical As Long, ByVal DisableWakeEvent As Long) As Long</p><p></p><p></p><p>Private Sub cbSleep_Click()</p><p> SetSuspendState 1, 0, 0</p><p>End Sub</p><p>------------------------------------------ </p><p></p><p>Tonight I will try to setup the environment to build MP to see if any of this hibernate/resume works for real. It might take a while to figure out enough of how MP is constructed but I will give it a try.</p></blockquote><p></p>
[QUOTE="Anonymous, post: 3817"] I've found a very simle API to make the system hibernate. I made a try in VB6 but I guess it will run in .net to. ------- code used on a form in VB ---------- Private Declare Function SetSuspendState Lib "Powrprof" (ByVal Hibernate As Long, ByVal ForceCritical As Long, ByVal DisableWakeEvent As Long) As Long Private Sub cbSleep_Click() SetSuspendState 1, 0, 0 End Sub ------------------------------------------ Tonight I will try to setup the environment to build MP to see if any of this hibernate/resume works for real. It might take a while to figure out enough of how MP is constructed but I will give it a try. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Wakeup from standby
Contact us
RSS
Top
Bottom