{"id":4818,"date":"2018-01-01T20:30:53","date_gmt":"2018-01-01T12:30:53","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=4818"},"modified":"2018-01-01T20:30:53","modified_gmt":"2018-01-01T12:30:53","slug":"%e6%95%99%e7%a8%8b%e4%bb%a5%e7%ae%a1%e7%90%86%e5%91%98%e8%ba%ab%e4%bb%bd%e8%bf%90%e8%a1%8c%e7%a8%8b%e5%ba%8f%e7%9a%84%e4%b8%80%e7%a7%8d%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=4818","title":{"rendered":"[\u6559\u7a0b]\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u7a0b\u5e8f\u7684\u4e00\u79cd\u65b9\u6cd5"},"content":{"rendered":"<p>\u4ee5\u7ba1\u7406\u5458\u8fd0\u884c\u7a0b\u5e8f\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u542b\u5728 manifest \u6587\u4ef6\u4e2d\u8bf7\u6c42\u6743\u9650\uff0c\u517c\u5bb9\u6027\u8bbe\u7f6e\u53ca\u4e0b\u9762\u8bf4\u7684 runas\u3002<\/p>\n<p>runas \u7b97\u662f\u4e00\u79cd\u6bd4\u8f83\u53e6\u7c7b\u7684\u65b9\u6cd5\uff0c\u5b83\u662f\u901a\u8fc7\u91cd\u65b0\u542f\u52a8\u7a0b\u5e8f\u4ee5\u7ba1\u7406\u5458\u65b9\u5f0f\u8fd0\u884c\u7684\u65b9\u5f0f\u6765\u8ba9\u65b0\u7684\u8fdb\u7a0b\u4ee5\u7ba1\u7406\u5458\u65b9\u5f0f\u8fd0\u884c\uff0c\u7136\u540e\u9000\u51fa\u5f53\u524d\u8fdb\u7a0b\uff0c\u4ee5\u8fbe\u5230\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u7684\u76ee\u7684\u3002<\/p>\n<p>\u8981\u6267\u884c\u8fd9\u4e2a\u64cd\u4f5c\u5b9e\u9645\u4e0a\u5f88\u7b80\u5355\uff0c\u7528\u4f17\u6240\u5468\u77e5\u7684 ShellExecute \u51fd\u6570\u5c31\u53ef\u4ee5\uff0c\u53c2\u8003\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:delphi decode:true\">AFileName := ParamStr(0);\r\nSetLength(AParams, 0);\r\nfor I := 1 to ParamCount - 1 do\r\n  AParams := AParams + QuotedStrW(ParamStr(I), '\"') + ' ';\r\nShellExecuteW(0, 'runas', PChar(AFileName), PChar(AParams),PChar(GetCurrentDir), SW_SHOWNORMAL);\r\nPostQuitMessage(0);<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u7ba1\u7406\u5458\u8fd0\u884c\u7a0b\u5e8f\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u5305\u542b\u5728  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8,603],"tags":[742,743,744,393],"class_list":["post-4818","post","type-post","status-publish","format-standard","hentry","category-delphi","category-603","tag-742","tag-743","tag-744","tag-393"],"views":3581,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4818"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4818\/revisions"}],"predecessor-version":[{"id":4819,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/4818\/revisions\/4819"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}