<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Комментарии на: Hibernate&#160;&#8212; Спящий режим</title>
	<atom:link href="http://read-me.su/hibernate-spyaschiy-rezhim/feed/" rel="self" type="application/rss+xml" />
	<link>http://read-me.su/hibernate-spyaschiy-rezhim/</link>
	<description>Mac OS X, Windows, Linux, железки и прочее</description>
	<lastBuildDate>Sun, 02 Oct 2011 18:27:22 +0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>От: kys</title>
		<link>http://read-me.su/hibernate-spyaschiy-rezhim/comment-page-1/#comment-4757</link>
		<dc:creator>kys</dc:creator>
		<pubDate>Thu, 08 Oct 2009 08:42:44 +0000</pubDate>
		<guid isPermaLink="false">tag:blogger.com,1999:blog-5374856446929038395.post-2917360461310957462#comment-4757</guid>
		<description>Radjah, ExitWindowsEx не для этого, если на WinAPI то так (C++):
typedef LONG (WINAPI *hSetSuspendStateFunc)   (bool Hibernate, bool ForceCritical, bool DisableWakeEvent);
HMODULE hLib = LoadLibrary(&quot;POWRPROF.DLL&quot;);
hSetSuspendStateFunc hSetSuspendState=(hSetSuspendStateFunc) GetProcAddress(hLib,&quot;SetSuspendState&quot;);
(*hSetSuspendState)(0,1,1); // первый параметр: 0-спящий режим, 1-гибернация
FreeLibrary(hLib);</description>
		<content:encoded><![CDATA[<p>Radjah, ExitWindowsEx не для этого, если на WinAPI то так (C++):</p><p>typedef LONG (WINAPI *hSetSuspendStateFunc)   (bool Hibernate, bool ForceCritical, bool DisableWakeEvent);</p><p>HMODULE hLib = LoadLibrary (&laquo;POWRPROF.DLL&raquo;);</p><p>hSetSuspendStateFunc hSetSuspendState=(hSetSuspendStateFunc) GetProcAddress (hLib,"SetSuspendState");</p><p>(*hSetSuspendState)(0,1,1); // первый параметр: 0-спящий режим, 1-гибернация</p><p>FreeLibrary (hLib);</p>]]></content:encoded>
	</item>
	<item>
		<title>От: Radjah</title>
		<link>http://read-me.su/hibernate-spyaschiy-rezhim/comment-page-1/#comment-10</link>
		<dc:creator>Radjah</dc:creator>
		<pubDate>Mon, 08 Sep 2008 17:47:54 +0000</pubDate>
		<guid isPermaLink="false">tag:blogger.com,1999:blog-5374856446929038395.post-2917360461310957462#comment-10</guid>
		<description>Я на асме мутил:

.386
.model flat, stdcall 
option casemap :none 

include windows.inc
include kernel32.inc
includelib kernel32.lib
include user32.inc
includelib user32.lib

.data

.code
start:
invoke ExitWindowsEx, EWX_LOGOFF, 0
invoke ExitProcess,0
end start</description>
		<content:encoded><![CDATA[<p>Я на асме мутил:</p><p>.386</p><p>.model flat, stdcall </p><p>option casemap :none </p><p>include windows.inc</p><p>include kernel32.inc</p><p>includelib kernel32.lib</p><p>include user32.inc</p><p>includelib user32.lib</p><p>.data</p><p>.code</p><p>start:</p><p>invoke ExitWindowsEx, EWX_LOGOFF, 0</p><p>invoke ExitProcess,0</p><p>end start</p>]]></content:encoded>
	</item>
</channel>
</rss>

