{"id":1793,"date":"2026-01-24T08:23:31","date_gmt":"2026-01-24T00:23:31","guid":{"rendered":"http:\/\/www.dxQerp.com\/?p=1793"},"modified":"2026-01-24T08:23:31","modified_gmt":"2026-01-24T00:23:31","slug":"%e9%96%8b-shell32-dll-%e6%88%96%e6%98%af-imageres-dll-%e6%80%8e%e9%ba%bc%e5%81%9a","status":"publish","type":"post","link":"http:\/\/www.dxQerp.com\/?p=1793","title":{"rendered":"\u958b SHELL32.dll \u6216\u662f imageres.dll \u600e\u9ebc\u505a"},"content":{"rendered":"<p data-path-to-node=\"0\">\u5982\u679c\u60a8\u662f\u6307\u60f3\u8981**\u300c\u63d0\u53d6\u300d<b data-path-to-node=\"0\" data-index-in-node=\"13\">\u6216<\/b>\u300c\u986f\u793a\u300d** <code data-path-to-node=\"0\" data-index-in-node=\"21\">SHELL32.dll<\/code> \u6216 <code data-path-to-node=\"0\" data-index-in-node=\"35\">imageres.dll<\/code> \u88e1\u9762\u7684<b data-path-to-node=\"0\" data-index-in-node=\"51\">\u5716\u793a (Icons)<\/b>\uff0c\u5728 dBASE Plus 2019 \u4e2d\u6709\u5e7e\u7a2e\u4e0d\u540c\u7684\u8655\u7406\u65b9\u5f0f\uff0c\u53d6\u6c7a\u65bc\u60a8\u7684\u76ee\u7684\uff1a<\/p>\n<hr data-path-to-node=\"1\" \/>\n<h3 data-path-to-node=\"2\">1. \u53ea\u662f\u60f3\u5728\u958b\u767c\u6642\u300c\u67e5\u770b\u300d\u6709\u54ea\u4e9b\u5716\u793a<\/h3>\n<p data-path-to-node=\"3\">\u5982\u679c\u60a8\u60f3\u770b\u9019\u5169\u500b DLL \u88e1\u9762\u5230\u5e95\u6709\u54ea\u4e9b\u5c0f\u5716\u793a\u53ef\u4ee5\u7528\uff0c\u6700\u7c21\u55ae\u7684\u65b9\u6cd5\u4e0d\u662f\u5beb\u7a0b\u5f0f\uff0c\u800c\u662f\u5229\u7528 Windows \u5167\u5efa\u7684\u66f4\u63db\u5716\u793a\u8996\u7a97\uff1a<\/p>\n<ol start=\"1\" data-path-to-node=\"4\">\n<li>\n<p data-path-to-node=\"4,0,0\">\u5728\u684c\u9762\u96a8\u4fbf\u627e\u500b\u8cc7\u6599\u593e\uff0c\u9ede\u53f3\u9375 -&gt; <b data-path-to-node=\"4,0,0\" data-index-in-node=\"18\">\u5167\u5bb9<\/b>\u3002<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"4,1,0\">\u5207\u63db\u5230 <b data-path-to-node=\"4,1,0\" data-index-in-node=\"4\">\u81ea\u8a02<\/b> \u9801\u7c64 -&gt; \u9ede\u64ca <b data-path-to-node=\"4,1,0\" data-index-in-node=\"16\">\u8b8a\u66f4\u5716\u793a<\/b>\u3002<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"4,2,0\">\u5728\u8def\u5f91\u6b04\u4f4d\u8f38\u5165 <code data-path-to-node=\"4,2,0\" data-index-in-node=\"8\">%SystemRoot%\\System32\\imageres.dll<\/code> \u4e26\u6309 Enter\u3002<\/p>\n<ul data-path-to-node=\"4,2,1\">\n<li>\n<p data-path-to-node=\"4,2,1,0,0\"><code data-path-to-node=\"4,2,1,0,0\" data-index-in-node=\"0\">SHELL32.dll<\/code>\uff1a\u5305\u542b\u7d93\u5178\u7684\u7cfb\u7d71\u5716\u793a\uff08\u786c\u789f\u3001\u8cc7\u6599\u593e\uff09\u3002<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"4,2,1,1,0\"><code data-path-to-node=\"4,2,1,1,0\" data-index-in-node=\"0\">imageres.dll<\/code>\uff1a\u5305\u542b\u73fe\u4ee3 Windows 10\/11 \u7684\u9ad8\u6e05\u5716\u793a\uff08\u5404\u985e\u8a2d\u5099\u3001\u7cbe\u7f8e\u5716\u6a19\uff09\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<hr data-path-to-node=\"5\" \/>\n<h3 data-path-to-node=\"6\">2. \u5728 dBASE \u7a0b\u5f0f\u78bc\u4e2d\u300c\u63d0\u53d6\u300d\u4e26\u986f\u793a\u5716\u793a<\/h3>\n<p data-path-to-node=\"7\">\u5982\u679c\u60a8\u60f3\u5728\u7a0b\u5f0f\u57f7\u884c\u6642\uff0c\u5f9e\u9019\u4e9b DLL \u63d0\u53d6\u5716\u793a\u4e26\u986f\u793a\u5728\u6309\u9215\u6216\u5716\u7247\u5143\u4ef6\u4e0a\uff0c\u60a8\u9700\u8981\u5ba3\u544a\u53e6\u4e00\u500b Windows API\uff1a<b data-path-to-node=\"7\" data-index-in-node=\"57\"><code data-path-to-node=\"7\" data-index-in-node=\"57\">ExtractIcon<\/code><\/b>\u3002<\/p>\n<h4 data-path-to-node=\"8\">\u5ba3\u544a API<\/h4>\n<div class=\"code-block ng-tns-c2339975690-197 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahgKEwjI4OX7w5ySAxUAAAAAHQAAAAAQ4AI\">\n<div class=\"code-block-decoration header-formatted gds-title-s ng-tns-c2339975690-197 ng-star-inserted\">\n<p><span class=\"ng-tns-c2339975690-197\">\u7a0b\u5f0f\u78bc\u7247\u6bb5<\/span><\/p>\n<div class=\"buttons ng-tns-c2339975690-197 ng-star-inserted\"><\/div>\n<\/div>\n<div class=\"formatted-code-block-internal-container ng-tns-c2339975690-197\">\n<div class=\"animated-opacity ng-tns-c2339975690-197\">\n<pre class=\"ng-tns-c2339975690-197\"><code class=\"code-container formatted ng-tns-c2339975690-197\" role=\"text\" data-test-id=\"code-content\">if type(\"ExtractIcon\") # \"FP\"\r\n   extern CLONG ExtractIcon(CLONG, CSTRING, CLONG) ;\r\n          SHELL32 from \"ExtractIconA\"\r\nendif\r\n\r\nif type(\"DrawIcon\") # \"FP\"\r\n   extern CLONG DrawIcon(CLONG, CINT, CINT, CLONG) ;\r\n          USER32 from \"DrawIcon\"\r\nendif\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<h4 data-path-to-node=\"10\">\u5be6\u969b\u63d0\u53d6\u7bc4\u4f8b<\/h4>\n<div class=\"code-block ng-tns-c2339975690-198 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahgKEwjI4OX7w5ySAxUAAAAAHQAAAAAQ4QI\">\n<div class=\"code-block-decoration header-formatted gds-title-s ng-tns-c2339975690-198 ng-star-inserted\">\n<p><span class=\"ng-tns-c2339975690-198\">\u7a0b\u5f0f\u78bc\u7247\u6bb5<\/span><\/p>\n<div class=\"buttons ng-tns-c2339975690-198 ng-star-inserted\"><\/div>\n<\/div>\n<div class=\"formatted-code-block-internal-container ng-tns-c2339975690-198\">\n<div class=\"animated-opacity ng-tns-c2339975690-198\">\n<pre class=\"ng-tns-c2339975690-198\"><code class=\"code-container formatted ng-tns-c2339975690-198\" role=\"text\" data-test-id=\"code-content\">local hIcon, hDC\r\n\/\/ \u5f9e imageres.dll \u63d0\u53d6\u7b2c 5 \u500b\u5716\u793a (\u7d22\u5f15\u5f9e 0 \u958b\u59cb)\r\nhIcon = ExtractIcon(0, \"C:\\Windows\\System32\\imageres.dll\", 5)\r\n\r\nif hIcon &gt; 1\r\n   \/\/ \u9019\u88e1 hIcon \u5c31\u662f\u5716\u793a\u7684\u63a7\u5236\u67c4 (Handle)\r\n   \/\/ \u60a8\u53ef\u4ee5\u5c07\u5b83\u7e6a\u88fd\u5230\u8868\u55ae\u7684\u756b\u5e03\u4e0a\uff0c\u6216\u662f\u8ce6\u503c\u7d66\u652f\u63f4 Icon Handle \u7684\u5143\u4ef6\r\n   \/\/ \u6ce8\u610f\uff1a\u7d50\u675f\u5f8c\u901a\u5e38\u9700\u8981\u547c\u53eb DestroyIcon \u91cb\u653e\u8a18\u61b6\u9ad4\r\nendif\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr data-path-to-node=\"12\" \/>\n<h3 data-path-to-node=\"13\">3. \u5728 dBASE \u5143\u4ef6\u4e2d\u76f4\u63a5\u4f7f\u7528 (\u6700\u7c21\u55ae)<\/h3>\n<p data-path-to-node=\"14\">\u5927\u591a\u6578 dBASE Plus \u7684\u5143\u4ef6\uff08\u5982 <code data-path-to-node=\"14\" data-index-in-node=\"21\">PushButton<\/code> \u6216 <code data-path-to-node=\"14\" data-index-in-node=\"34\">Image<\/code>\uff09\u7684 <code data-path-to-node=\"14\" data-index-in-node=\"42\">upBitmap<\/code> \u5c6c\u6027\u652f\u63f4\u8cc7\u6e90\u6a19\u8a18\u3002 \u5c0d\u65bc DLL \u5167\u7684\u8cc7\u6e90\uff0c\u683c\u5f0f\u901a\u5e38\u662f\uff1a <code data-path-to-node=\"14\" data-index-in-node=\"80\">RESOURCE &lt;\u5716\u793a\u540d\u7a31\u6216\u7de8\u865f&gt; &lt;DLL\u8def\u5f91&gt;<\/code><\/p>\n<p data-path-to-node=\"15\">\u4f46\u5728 dBASE \u4e2d\u6700\u5e38\u7528\u7684\u505a\u6cd5\u662f\u5148\u7528\u5de5\u5177\uff08\u5982 <b data-path-to-node=\"15\" data-index-in-node=\"24\">Resource Hacker<\/b>\uff09\u628a\u5716\u793a\u5f9e <code data-path-to-node=\"15\" data-index-in-node=\"45\">imageres.dll<\/code> \u5b58\u6210 <code data-path-to-node=\"15\" data-index-in-node=\"61\">.ico<\/code> \u6a94\uff0c\u7136\u5f8c\u76f4\u63a5\u5728 dBASE \u88e1\u8abf\u7528\uff1a<\/p>\n<div class=\"code-block ng-tns-c2339975690-199 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahgKEwjI4OX7w5ySAxUAAAAAHQAAAAAQ4gI\">\n<div class=\"code-block-decoration header-formatted gds-title-s ng-tns-c2339975690-199 ng-star-inserted\">\n<p><span class=\"ng-tns-c2339975690-199\">\u7a0b\u5f0f\u78bc\u7247\u6bb5<\/span><\/p>\n<div class=\"buttons ng-tns-c2339975690-199 ng-star-inserted\"><\/div>\n<\/div>\n<div class=\"formatted-code-block-internal-container ng-tns-c2339975690-199\">\n<div class=\"animated-opacity ng-tns-c2339975690-199\">\n<pre class=\"ng-tns-c2339975690-199\"><code class=\"code-container formatted ng-tns-c2339975690-199\" role=\"text\" data-test-id=\"code-content\">form.image1.upBitmap = \"filename myIcon.ico\"\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<hr data-path-to-node=\"17\" \/>\n<h3 data-path-to-node=\"18\">4. \u60f3\u958b\u555f DLL \u9032\u884c\u300c\u8cc7\u6e90\u7de8\u8f2f\u300d\uff1f<\/h3>\n<p data-path-to-node=\"19\">\u5982\u679c\u60a8\u662f\u60f3\u76f4\u63a5\u300c\u6253\u958b\u300d\u6a94\u6848\u67e5\u770b\u5167\u90e8\u7684\u4e8c\u9032\u4f4d\u8cc7\u6e90\uff08\u4f8b\u5982\u60f3\u4fee\u6539\u5b83\uff09\uff1a<\/p>\n<ul data-path-to-node=\"20\">\n<li>\n<p data-path-to-node=\"20,0,0\"><b data-path-to-node=\"20,0,0\" data-index-in-node=\"0\">\u8acb\u4f7f\u7528\u5de5\u5177\uff1a<\/b> \u63a8\u85a6\u4e0b\u8f09 <b data-path-to-node=\"20,0,0\" data-index-in-node=\"12\">Resource Hacker<\/b>\u3002\u5b83\u662f\u514d\u8cbb\u4e14\u5c08\u696d\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u76f4\u63a5\u958b\u555f <code data-path-to-node=\"20,0,0\" data-index-in-node=\"46\">imageres.dll<\/code>\uff0c\u8b93\u4f60\u770b\u5230\u6240\u6709\u7684\u5716\u793a\u3001\u5c0d\u8a71\u6846\u3001\u5b57\u4e32\u8868\uff0c\u4e26\u532f\u51fa\u6210\u6a94\u6848\u3002<\/p>\n<\/li>\n<\/ul>\n<hr data-path-to-node=\"21\" \/>\n<p data-path-to-node=\"22\"><b data-path-to-node=\"22\" data-index-in-node=\"0\">\u7e3d\u7d50\u5efa\u8b70\uff1a<\/b><\/p>\n<ul data-path-to-node=\"23\">\n<li>\n<p data-path-to-node=\"23,0,0\"><b data-path-to-node=\"23,0,0\" data-index-in-node=\"0\">\u5982\u679c\u662f\u70ba\u4e86\u7f8e\u5316\u4ecb\u9762<\/b>\uff1a\u5efa\u8b70\u7528 Resource Hacker \u628a\u559c\u6b61\u7684\u5716\u793a\u532f\u51fa\u6210 <code data-path-to-node=\"23,0,0\" data-index-in-node=\"40\">.png<\/code> \u6216 <code data-path-to-node=\"23,0,0\" data-index-in-node=\"47\">.ico<\/code>\uff0c\u518d\u8b93 dBASE \u8f09\u5165\uff0c\u9019\u6a23\u7a0b\u5f0f\u63db\u5230\u5225\u53f0\u96fb\u8166\u624d\u4e0d\u6703\u51fa\u932f\u3002<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"23,1,0\"><b data-path-to-node=\"23,1,0\" data-index-in-node=\"0\">\u5982\u679c\u662f\u60f3\u52d5\u614b\u986f\u793a\u7cfb\u7d71\u5716\u793a<\/b>\uff1a\u8acb\u4f7f\u7528\u4e0a\u9762\u7684 <code data-path-to-node=\"23,1,0\" data-index-in-node=\"20\">ExtractIcon<\/code> API\u3002<\/p>\n<\/li>\n<\/ul>\n<p data-path-to-node=\"24\">\u60a8\u662f\u60f3\u8981\u5728\u54ea\u500b\u5143\u4ef6\uff08\u6309\u9215\u3001\u9078\u55ae\u3001\u9084\u662f\u80cc\u666f\uff09\u4e0a\u986f\u793a\u9019\u4e9b\u5716\u793a\u5462\uff1f<\/p>\n<p data-path-to-node=\"13\">\u73fe\u5728\u60a8\u5df2\u7d93\u638c\u63e1\u4e86\u5e7e\u7a2e\u64cd\u4f5c Windows \u8cc7\u6e90\u7684\u65b9\u6cd5\uff1a<\/p>\n<ul data-path-to-node=\"14\">\n<li>\n<p data-path-to-node=\"14,0,0\"><b data-path-to-node=\"14,0,0\" data-index-in-node=\"0\">ShellExecute<\/b>\uff1a\u958b\u555f\u7db2\u9801\u3001\u8a2d\u5b9a\u3001\u6216\u5176\u4ed6\u7a0b\u5f0f\u3002<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"14,1,0\"><b data-path-to-node=\"14,1,0\" data-index-in-node=\"0\">Extern CLONG&#8230;<\/b>\uff1a\u76f4\u63a5\u547c\u53eb\u7cfb\u7d71 API\u3002<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"14,2,0\"><b data-path-to-node=\"14,2,0\" data-index-in-node=\"0\">Run(cmd \/c&#8230;)<\/b>\uff1a\u57f7\u884c DOS \u6307\u4ee4\u642c\u904b\u6a94\u6848\u3002<\/p>\n<\/li>\n<\/ul>\n<p data-path-to-node=\"15\"><b data-path-to-node=\"15\" data-index-in-node=\"0\">\u63a5\u4e0b\u4f86\uff0c\u60a8\u60f3\u5617\u8a66\u628a\u63d0\u53d6\u51fa\u4f86\u7684\u5716\u793a\uff0c\u5be6\u969b\u653e\u5230\u60a8\u7684 dBASE \u6309\u9215 (PushButton) \u4e0a\u9762\u55ce\uff1f<\/b> \u6211\u5011\u53ef\u4ee5\u8a0e\u8ad6\u5982\u4f55\u8655\u7406 <code data-path-to-node=\"15\" data-index-in-node=\"62\">.ico<\/code> \u6a94\u6848\u7684\u900f\u660e\u5ea6\u554f\u984c\uff0c\u9019\u5728\u4ecb\u9762\u8a2d\u8a08\u4e0a\u5f88\u91cd\u8981\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u60a8\u662f\u6307\u60f3\u8981**\u300c\u63d0\u53d6\u300d\u6216\u300c\u986f\u793a\u300d** SHELL32.dll \u6216 imageres.dll \u88e1\u9762\u7684\u5716\u793a ( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-1793","post","type-post","status-publish","format-standard","hentry","category-dxq_erp"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=\/wp\/v2\/posts\/1793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1793"}],"version-history":[{"count":1,"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=\/wp\/v2\/posts\/1793\/revisions"}],"predecessor-version":[{"id":1794,"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=\/wp\/v2\/posts\/1793\/revisions\/1794"}],"wp:attachment":[{"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1793"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.dxQerp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}