{"id":779,"date":"2009-12-06T22:15:00","date_gmt":"2009-12-06T02:15:00","guid":{"rendered":""},"modified":"2013-11-17T16:52:03","modified_gmt":"2013-11-17T08:52:03","slug":"delphi%e5%ae%9e%e7%8e%b0%e6%9a%b4%e5%8a%9b%e7%9e%ac%e9%97%b4%e5%85%b3%e6%9c%ba","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/779.html","title":{"rendered":"Delphi\u5b9e\u73b0\u66b4\u529b\u77ac\u95f4\u5173\u673a"},"content":{"rendered":"<p>\u672c\u4eba\u4eb2\u6d4b\uff0c\u5f88\u597d\u5f88\u5f3a\u5927\uff01\u5c5e\u4e8e\u6b63\u5e38\u5173\u673a\uff0c\u91cd\u542f\u540e\u4e0d\u81ea\u68c0\u3002<\/p>\n<pre class=\"brush: delphi; title: ; notranslate\" title=\"\">\r\nprogram Project1;\r\n\r\nuses Windows;\r\n\/\/\u63d0\u6743\r\nfunction RtlAdjustPrivilege(Privilege: ULONG; Enable: BOOLEAN;\r\nCurrentThread: BOOLEAN; Enabled: PBOOLEAN): DWORD; stdcall; external 'ntdll.dll';\r\n\/\/\u8c03\u7528\u5173\u673a\u51fd\u6570\r\nfunction ZwShutdownSystem(arg: DWORD): BOOLEAN; stdcall; external 'ntdll.dll';\r\n\r\nbegin\r\nasm\r\n    PUSH ESP\r\n    PUSH 0\r\n    PUSH 1\r\n    PUSH $13\r\n    CALL RtlAdjustPrivilege\r\n    PUSH 0\r\n    CALL ZwShutdownSystem\r\nend;\r\nend.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u4eba\u4eb2\u6d4b\uff0c\u5f88\u597d\u5f88\u5f3a\u5927\uff01\u5c5e\u4e8e\u6b63\u5e38\u5173\u673a\uff0c\u91cd\u542f\u540e\u4e0d\u81ea\u68c0\u3002 program Project1; uses Window [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-779","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=779"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/779\/revisions"}],"predecessor-version":[{"id":4708,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/779\/revisions\/4708"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}