{"id":5635,"date":"2023-02-09T09:58:40","date_gmt":"2023-02-09T01:58:40","guid":{"rendered":"https:\/\/blog.qdac.cc\/?p=5635"},"modified":"2023-02-09T09:58:40","modified_gmt":"2023-02-09T01:58:40","slug":"%e6%95%99%e7%a8%8b%e4%b8%80%e7%a7%8d%e5%9c%a8%e5%ba%94%e7%94%a8%e4%b8%ad%e5%88%a4%e6%96%ad%e5%8a%a8%e6%80%81%e9%93%be%e6%8e%a5%e5%ba%93%e6%98%af%e5%90%a6%e4%b8%8e%e5%bd%93%e5%89%8d%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=5635","title":{"rendered":"[\u6559\u7a0b]\u4e00\u79cd\u5728\u5e94\u7528\u4e2d\u5224\u65ad\u52a8\u6001\u94fe\u63a5\u5e93\u662f\u5426\u4e0e\u5f53\u524d\u5e94\u7528\u517c\u5bb9\u7684\u65b9\u6cd5"},"content":{"rendered":"\n<p>\u4ee3\u7801\u7ec8\u7ed3\u8005\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>var hLib:=LoadLibrary(DLL_PATH);\nif hLib>0 then\n  begin\n  FreeLibrary(hLib);\n  \/\/\u52a0\u8f7d\u6210\u529f\uff0c\u8bf4\u660e\u52a8\u6001\u94fe\u63a5\u5e93\u53ef\u4ee5\u5728\u5f53\u524d\u5e94\u7528\u4e2d\u4f7f\u7528\n  end\nelse\n  begin\n  \/\/\u52a0\u8f7d\u5931\u8d25\u8bf4\u660e\u4e0e\u5f53\u524d\u7a0b\u5e8f\u4e0d\u517c\u5bb9\u6216\u7f3a\u5c11\u4f9d\u8d56\u7684\u5e93\n  end<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u4ec5\u4ec5\u5224\u65adDLL\u6216\u7a0b\u5e8f\u662f\u4e0d\u662f64\u4f4d\u7684\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528 GetBinaryType \u51fd\u6570\u6765\u5224\u65ad\uff0c\u5177\u4f53\u4fe1\u606f\u53c2\u4e0e\u5fae\u8f6f\u5b98\u65b9 <a href=\"https:\/\/learn.microsoft.com\/zh-cn\/windows\/win32\/api\/winbase\/nf-winbase-getbinarytypea\">API \u6587\u6863<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee3\u7801\u7ec8\u7ed3\u8005\uff1a \u5982\u679c\u4ec5\u4ec5\u5224\u65adDLL\u6216\u7a0b\u5e8f\u662f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","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],"tags":[],"class_list":["post-5635","post","type-post","status-publish","format-standard","hentry","category-delphi"],"views":1952,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5635","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=5635"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5635\/revisions"}],"predecessor-version":[{"id":5637,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/5635\/revisions\/5637"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}