<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Timothy&#039;s Space &#187; adjust</title>
	<atom:link href="http://www.xiaozhou.net/tag/adjust/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaozhou.net</link>
	<description>君看一叶舟，出没风波里</description>
	<lastBuildDate>Tue, 27 Jul 2010 01:00:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>BLOG界面调整</title>
		<link>http://www.xiaozhou.net/aboutsite/sitelog/blog-interface-adjustments-2009-09-26.htm</link>
		<comments>http://www.xiaozhou.net/aboutsite/sitelog/blog-interface-adjustments-2009-09-26.htm#comments</comments>
		<pubDate>Sat, 26 Sep 2009 08:09:13 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[站点日志]]></category>
		<category><![CDATA[adjust]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[UI]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=244</guid>
		<description><![CDATA[这两天改了一下BLOG的CSS，主要调整了一下文章的标题文字的样式和文章内容文字的大小，在此推荐浏览本BLOG的同学安装微软雅黑字体。另外，在修改数据库的时候，忘了备份，导致最近一篇文章的评论丢失，囧&#8230;&#8230;下次一定吸取教训。 你可能也对下列文章感兴趣2010年06月17日 -- Blog近期改动小记 (12)2010年06月12日 -- Blog插件更新 (20)2010年06月5日 -- Blog折腾小记 (13)2010年05月12日 -- 又是一大把腾讯微博邀请(2010.05.22更新) (15)2010年04月28日 -- 继续发放腾讯微博邀请三枚 (14)2010年04月22日 -- 发放腾讯微博邀请三枚 (29)2010年01月31日 -- Blog小规模改动 (9)2010年01月14日 -- 把博客烧录到我烧网 (13)2009年09月24日 -- My BLOG is 5 years old! (0)2004年10月21日 -- 调整当前进程权限并关机 (0)]]></description>
			<content:encoded><![CDATA[<p>这两天改了一下BLOG的CSS，主要调整了一下文章的标题文字的样式和文章内容文字的大小，<span style="color: rgb(255, 0, 0); ">在此推荐浏览本BLOG的同学安装微软雅黑字体</span>。另外，在修改数据库的时候，忘了备份，导致最近一篇文章的评论丢失，囧&hellip;&hellip;下次一定吸取教训。</p>
<h3  class="related_post_title">你可能也对下列文章感兴趣</h3><ul class="related_post"><li>2010年06月17日 -- <a href="http://www.xiaozhou.net/aboutsite/wordpress/blog_recent_modification-2-2010-06-17.htm" title="Blog近期改动小记">Blog近期改动小记</a> (12)</li><li>2010年06月12日 -- <a href="http://www.xiaozhou.net/aboutsite/wordpress/blog_plugins_updated-2010-06-12.htm" title="Blog插件更新">Blog插件更新</a> (20)</li><li>2010年06月5日 -- <a href="http://www.xiaozhou.net/aboutsite/sitelog/toss_about_blog-2010-06-05.htm" title="Blog折腾小记">Blog折腾小记</a> (13)</li><li>2010年05月12日 -- <a href="http://www.xiaozhou.net/ittech/software/more_tencent_micro_blog_invitations-2010-05-12.htm" title="又是一大把腾讯微博邀请(2010.05.22更新)">又是一大把腾讯微博邀请(2010.05.22更新)</a> (15)</li><li>2010年04月28日 -- <a href="http://www.xiaozhou.net/ittech/software/tencent_micro_blog_invitation_again-2010-04-28.htm" title="继续发放腾讯微博邀请三枚">继续发放腾讯微博邀请三枚</a> (14)</li><li>2010年04月22日 -- <a href="http://www.xiaozhou.net/ittech/software/tencent_micro_blog_invitation-2010-04-22.htm" title="发放腾讯微博邀请三枚">发放腾讯微博邀请三枚</a> (29)</li><li>2010年01月31日 -- <a href="http://www.xiaozhou.net/aboutsite/sitelog/little_modification_on_blog-2010-01-31.htm" title="Blog小规模改动">Blog小规模改动</a> (9)</li><li>2010年01月14日 -- <a href="http://www.xiaozhou.net/aboutsite/sitelog/%e6%8a%8a%e5%8d%9a%e5%ae%a2%e7%83%a7%e5%bd%95%e5%88%b0%e6%88%91%e7%83%a7%e7%bd%91-2010-01-14.htm" title="把博客烧录到我烧网">把博客烧录到我烧网</a> (13)</li><li>2009年09月24日 -- <a href="http://www.xiaozhou.net/aboutsite/sitelog/my-blog-is-5-years-old-2009-09-24.htm" title="My BLOG is 5 years old!">My BLOG is 5 years old!</a> (0)</li><li>2004年10月21日 -- <a href="http://www.xiaozhou.net/vcdevelopment/to-adjust-the-current-process-permissions-and-shutdown-2004-10-21.htm" title="调整当前进程权限并关机">调整当前进程权限并关机</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/aboutsite/sitelog/blog-interface-adjustments-2009-09-26.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>调整当前进程权限并关机</title>
		<link>http://www.xiaozhou.net/vcdevelopment/to-adjust-the-current-process-permissions-and-shutdown-2004-10-21.htm</link>
		<comments>http://www.xiaozhou.net/vcdevelopment/to-adjust-the-current-process-permissions-and-shutdown-2004-10-21.htm#comments</comments>
		<pubDate>Thu, 21 Oct 2004 14:11:51 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[VC开发]]></category>
		<category><![CDATA[adjust]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Shutdown]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=33</guid>
		<description><![CDATA[核心代码片断： if (!OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES &#124; TOKEN_QUERY, &#038;hToken)) { MessageBox(&#8220;OpenProcessToken failed!&#8221;); } LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME,&#038;tkp.Privileges[0].Luid); //获得本地机唯一的标识 tkp.PrivilegeCount = 1; tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED; AdjustTokenPrivileges(hToken, FALSE, &#038;tkp, 0,(PTOKEN_PRIVILEGES) NULL, 0); //调整获得的权限 if (GetLastError() != ERROR_SUCCESS) { MessageBox(&#8220;切换系统级权限失败!&#8221;); } fResult =InitiateSystemShutdown( NULL, // 要关的计算机用户名 &#8220;关机时间已到，WINDOWS将在上面的时间内关机，请做好保存工作!&#8221;, // 显示的消息 10, // 关机所需的时间 TRUE, // ask user to close apps FALSE); //设为TRUE为重起，设为FALSE为关机 if(!fResult) { [...]]]></description>
			<content:encoded><![CDATA[<p>核心代码片断：</p>
<p>if (!OpenProcessToken(GetCurrentProcess(),TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &#038;hToken))<br />
		{<br />
		    MessageBox(&#8220;OpenProcessToken failed!&#8221;);<br />
		}</p>
<p>	    LookupPrivilegeValue(NULL, SE_SHUTDOWN_NAME,&#038;tkp.Privileges[0].Luid); //获得本地机唯一的标识<br />
	    tkp.PrivilegeCount = 1;<br />
	    tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;<br />
        AdjustTokenPrivileges(hToken, FALSE, &#038;tkp, 0,(PTOKEN_PRIVILEGES) NULL, 0); //调整获得的权限</p>
<p>	    if (GetLastError() != ERROR_SUCCESS)<br />
		{<br />
            MessageBox(&#8220;切换系统级权限失败!&#8221;);<br />
		}</p>
<p>	    fResult =InitiateSystemShutdown(<br />
             NULL,                                  // 要关的计算机用户名<br />
             &#8220;关机时间已到，WINDOWS将在上面的时间内关机，请做好保存工作!&#8221;,  // 显示的消息<br />
             10,                                    // 关机所需的时间<br />
             TRUE,                                 // ask user to close apps<br />
             FALSE);                               //设为TRUE为重起，设为FALSE为关机<br />
	    if(!fResult)<br />
		{<br />
             MessageBox(&#8220;初始化系统关机失败！&#8221;);<br />
		}</p>
<p>	    tkp.Privileges[0].Attributes = 0;<br />
        AdjustTokenPrivileges(hToken, FALSE, &#038;tkp, 0,(PTOKEN_PRIVILEGES) NULL, 0);</p>
<p>	    if (GetLastError() != ERROR_SUCCESS)<br />
		{<br />
             MessageBox(&#8220;AdjustTokenPrivileges disable failed.&#8221;);<br />
		}</p>
<p>	    ExitWindowsEx(EWX_SHUTDOWN,0);</p>
<h3  class="related_post_title">你可能也对下列文章感兴趣</h3><ul class="related_post"><li>2004年10月10日 -- <a href="http://www.xiaozhou.net/vcdevelopment/adjust-the-process-the-core-code-access-2004-10-10.htm" title="调整本进程权限核心代码">调整本进程权限核心代码</a> (0)</li><li>2009年09月26日 -- <a href="http://www.xiaozhou.net/aboutsite/sitelog/blog-interface-adjustments-2009-09-26.htm" title="BLOG界面调整">BLOG界面调整</a> (0)</li><li>2004年10月22日 -- <a href="http://www.xiaozhou.net/vcdevelopment/a-code-injection-process-2004-10-22.htm" title="一份进程注入的代码">一份进程注入的代码</a> (0)</li><li>2004年10月10日 -- <a href="http://www.xiaozhou.net/vcdevelopment/enumerate-the-system-processes-the-core-code-2004-10-10.htm" title="枚举系统进程核心代码">枚举系统进程核心代码</a> (0)</li><li>2004年09月7日 -- <a href="http://www.xiaozhou.net/myworks/process-killer-v1-0-2004-09-07.htm" title="进程杀手v1.0">进程杀手v1.0</a> (0)</li><li>2004年09月7日 -- <a href="http://www.xiaozhou.net/myworks/cmd-interface-shutdown-procedure-2004-09-07.htm" title="CMD界面下的关机程序">CMD界面下的关机程序</a> (0)</li><li>2004年09月7日 -- <a href="http://www.xiaozhou.net/myworks/automatic-shutdown-process-2004-09-07.htm" title="自动关机程序">自动关机程序</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/vcdevelopment/to-adjust-the-current-process-permissions-and-shutdown-2004-10-21.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>调整本进程权限核心代码</title>
		<link>http://www.xiaozhou.net/vcdevelopment/adjust-the-process-the-core-code-access-2004-10-10.htm</link>
		<comments>http://www.xiaozhou.net/vcdevelopment/adjust-the-process-the-core-code-access-2004-10-10.htm#comments</comments>
		<pubDate>Sun, 10 Oct 2004 14:42:49 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[VC开发]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[adjust]]></category>
		<category><![CDATA[Process]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=28</guid>
		<description><![CDATA[void EnablePrivilege() { HANDLE hProcess; HANDLE hCurrentProcess; HANDLE hProcessToken; TOKEN_PRIVILEGES tp; LUID luid; hCurrentProcess=GetCurrentProcess(); OpenProcessToken(hCurrentProcess,TOKEN_ALL_ACCESS,&#038;hProcessToken); LookupPrivilegeValue(NULL,&#8221;SeDebugPrivilege&#8221;,&#038;luid); tp.PrivilegeCount=1; tp.Privileges[0].Luid=luid; tp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED; AdjustTokenPrivileges( hProcessToken, FALSE, &#038;tp, sizeof(TOKEN_PRIVILEGES), (PTOKEN_PRIVILEGES)NULL, (PDWORD)NULL); } 你可能也对下列文章感兴趣2004年10月21日 -- 调整当前进程权限并关机 (0)2009年09月26日 -- BLOG界面调整 (0)2004年10月22日 -- 一份进程注入的代码 (0)2004年10月10日 -- 枚举系统进程核心代码 (0)2004年09月7日 -- 进程杀手v1.0 (0)]]></description>
			<content:encoded><![CDATA[<p>void EnablePrivilege()<br />
{<br />
	HANDLE hProcess;<br />
	HANDLE hCurrentProcess;<br />
	HANDLE hProcessToken;<br />
	TOKEN_PRIVILEGES tp;<br />
	LUID luid;<br />
	hCurrentProcess=GetCurrentProcess();<br />
	OpenProcessToken(hCurrentProcess,TOKEN_ALL_ACCESS,&#038;hProcessToken);<br />
	LookupPrivilegeValue(NULL,&#8221;SeDebugPrivilege&#8221;,&#038;luid);<br />
	tp.PrivilegeCount=1;<br />
	tp.Privileges[0].Luid=luid;<br />
	tp.Privileges[0].Attributes=SE_PRIVILEGE_ENABLED;<br />
	AdjustTokenPrivileges(<br />
		hProcessToken,<br />
		FALSE,<br />
		&#038;tp,<br />
		sizeof(TOKEN_PRIVILEGES),<br />
		(PTOKEN_PRIVILEGES)NULL,<br />
		(PDWORD)NULL);<br />
}</p>
<h3  class="related_post_title">你可能也对下列文章感兴趣</h3><ul class="related_post"><li>2004年10月21日 -- <a href="http://www.xiaozhou.net/vcdevelopment/to-adjust-the-current-process-permissions-and-shutdown-2004-10-21.htm" title="调整当前进程权限并关机">调整当前进程权限并关机</a> (0)</li><li>2009年09月26日 -- <a href="http://www.xiaozhou.net/aboutsite/sitelog/blog-interface-adjustments-2009-09-26.htm" title="BLOG界面调整">BLOG界面调整</a> (0)</li><li>2004年10月22日 -- <a href="http://www.xiaozhou.net/vcdevelopment/a-code-injection-process-2004-10-22.htm" title="一份进程注入的代码">一份进程注入的代码</a> (0)</li><li>2004年10月10日 -- <a href="http://www.xiaozhou.net/vcdevelopment/enumerate-the-system-processes-the-core-code-2004-10-10.htm" title="枚举系统进程核心代码">枚举系统进程核心代码</a> (0)</li><li>2004年09月7日 -- <a href="http://www.xiaozhou.net/myworks/process-killer-v1-0-2004-09-07.htm" title="进程杀手v1.0">进程杀手v1.0</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/vcdevelopment/adjust-the-process-the-core-code-access-2004-10-10.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
