{"id":103198,"date":"2026-09-10T02:17:25","date_gmt":"2026-09-09T18:17:25","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/103198.html"},"modified":"2026-09-10T02:17:25","modified_gmt":"2026-09-09T18:17:25","slug":"%e5%8f%8d%e8%b0%83%e8%af%95%e6%8a%80%e6%9c%af%e5%89%96%e6%9e%90%ef%bc%88%e4%b8%89%ef%bc%89%ef%bc%9a%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86%e6%9c%ba%e5%88%b6%ef%bc%88seh-veh%ef%bc%89%e4%b8%8e%e5%8f%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/103198.html","title":{"rendered":"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631"},"content":{"rendered":"<h2>\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790&#xff08;\u4e09&#xff09;&#xff1a;\u5f02\u5e38\u5904\u7406\u673a\u5236&#xff08;SEH\/VEH&#xff09;\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260909181724-6aa1a2b498112.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728 Windows \u5e73\u53f0\u7684\u9ad8\u5bf9\u6297\u6076\u610f\u4ee3\u7801\u5206\u6790\u4e0e\u4fdd\u62a4\u58f3\u9006\u5411\u4e2d&#xff0c;\u5f02\u5e38\u5904\u7406\u673a\u5236&#xff08;SEH &#8211; Structured Exception Handling \u4e0e VEH &#8211; Vectored Exception Handling&#xff09;\u4e0d\u4ec5\u662f\u7a0b\u5e8f\u5bb9\u9519\u7684\u6838\u5fc3\u57fa\u7840\u8bbe\u65bd&#xff0c;\u66f4\u662f\u5bf9\u6297\u52a8\u6001\u8c03\u8bd5\u5668&#xff08;\u5982 x64dbg\u3001OllyDbg\u3001WinDbg&#xff09;\u7684\u5f3a\u529b\u6b66\u5668\u3002<\/p>\n<p>\u8c03\u8bd5\u5668\u4e0e\u76ee\u6807\u8fdb\u7a0b\u5728\u9762\u5bf9\u7cfb\u7edf\u5f02\u5e38\u65f6\u5b58\u5728\u56fa\u6709\u7684\u201c\u63a5\u7ba1\u4f18\u5148\u7ea7\u7ade\u4e89\u201d\u3002\u6076\u610f\u8f6f\u4ef6\u4e0e\u5546\u4e1a\u4fdd\u62a4\u58f3\u5e38\u5e38\u4e3b\u52a8\u6784\u9020\u7279\u5b9a\u5f02\u5e38&#xff08;\u5982\u975e\u6cd5\u5185\u5b58\u8bbf\u95ee\u3001int 3 \u65ad\u70b9\u9677\u9631\u3001int 2d \u8c03\u8bd5\u670d\u52a1\u4e2d\u65ad\u3001\u672a\u5b9a\u4e49\u6307\u4ee4&#xff09;&#xff0c;\u5e76\u5229\u7528\u81ea\u5b9a\u4e49\u7684 SEH\/VEH \u94fe\u6761\u5728\u540e\u53f0\u79d8\u5bc6\u4fee\u6539\u5bc4\u5b58\u5668&#xff08;\u5982 EIP\/RIP\u3001EFLAGS&#xff09;\u6216\u8f6c\u79fb\u6267\u884c\u6d41\u3002\u5982\u679c\u9006\u5411\u5206\u6790\u5e08\u76f2\u76ee\u5c06\u5f02\u5e38\u4ea4\u7ed9\u8c03\u8bd5\u5668\u5904\u7406\u6216\u914d\u7f6e\u4e86\u9519\u8bef\u7684\u5f02\u5e38\u4f20\u9012\u7b56\u7565&#xff0c;\u5206\u6790\u6d41\u7a0b\u5c06\u7acb\u5373\u9677\u5165\u6b7b\u5faa\u73af\u3001\u7a0b\u5e8f\u5d29\u6e83\u6216\u88ab\u5f15\u5bfc\u81f3\u865a\u5047\u4ee3\u7801\u5206\u652f\u3002<\/p>\n<h3>Windows \u5f02\u5e38\u5206\u53d1\u4e0e\u8c03\u8bd5\u5668\u7ade\u4e89\u6a21\u578b<\/h3>\n<p>[\u53d1\u751f\u5f02\u5e38 (\u5982 INT 3 \/ STATUS_BREAKPOINT)]<br \/>\n                   \u2502<br \/>\n                   \u25bc<br \/>\n[1. \u5185\u6838\u9996\u5148\u901a\u77e5\u8c03\u8bd5\u5668 (First-Chance Exception \/ \u9996\u6b21\u673a\u4f1a)] \u2500\u2500(\u8c03\u8bd5\u5668\u62e6\u622a\u5e76\u6682\u505c)\u2500\u2500&gt; [\u9006\u5411\u5206\u6790\u5e08\u4ecb\u5165]<br \/>\n                   \u2502 (\u82e5\u9006\u5411\u4eba\u5458\u76f4\u63a5\u6309 F9 \u5ffd\u7565\/\u672a\u6b63\u786e\u56de\u4f20)<br \/>\n                   \u25bc<br \/>\n[2. \u5206\u53d1\u7ed9 VEH \u5411\u91cf\u5316\u5f02\u5e38\u5904\u7406\u94fe\u8868 (AddVectoredExceptionHandler)]<br \/>\n                   \u2502 (\u82e5\u5904\u7406\u51fd\u6570\u8fd4\u56de EXCEPTION_CONTINUE_SEARCH)<br \/>\n                   \u25bc<br \/>\n[3. \u5206\u53d1\u7ed9\u57fa\u4e8e\u7ebf\u7a0b\u6808\u7684 SEH \u94fe\u8868 (FS:[0] \/ GS:[0] \/ \u7ed3\u6784\u5316\u5f02\u5e38)]<br \/>\n                   \u2502 (\u82e5\u5904\u7406\u51fd\u6570\u4fee\u590d\u4e86\u4e0a\u4e0b\u6587\u5e76\u8fd4\u56de EXCEPTION_CONTINUE_EXECUTION)<br \/>\n                   \u25bc<br \/>\n[4. \u5185\u6838\u518d\u6b21\u901a\u77e5\u8c03\u8bd5\u5668 (Second-Chance Exception \/ \u6700\u540e\u673a\u4f1a)] \u2500\u2500(\u65e0\u6cd5\u5904\u7406)\u2500\u2500&gt; [\u76ee\u6807\u8fdb\u7a0b\u5d29\u6e83\u9000\u51fa]<\/p>\n<p>Windows \u7684\u5f02\u5e38\u6d3e\u53d1\u6d41\u7a0b\u9075\u5faa\u4e25\u683c\u7684\u4f18\u5148\u7ea7&#xff1a;<\/p>\n<li>First-Chance \u9636\u6bb5&#xff1a;\u7cfb\u7edf\u7b2c\u4e00\u65f6\u95f4\u5c06\u5f02\u5e38\u901a\u77e5\u7ed9\u9644\u52a0\u7684\u8c03\u8bd5\u5668\u3002\u8c03\u8bd5\u5668\u82e5\u6355\u83b7\u8be5\u5f02\u5e38\u5e76\u6682\u505c&#xff0c;\u9006\u5411\u4eba\u5458\u5f80\u5f80\u8bef\u4ee5\u4e3a\u9047\u5230\u4e86\u5e38\u89c4\u65ad\u70b9\u3002<\/li>\n<li>VEH\/SEH \u9636\u6bb5&#xff1a;\u82e5\u8c03\u8bd5\u5668\u5c06\u5f02\u5e38\u4f20\u9012\u56de\u8fdb\u7a0b&#xff08;Pass exception to program&#xff09;&#xff0c;\u7cfb\u7edf\u624d\u4f9d\u6b21\u8c03\u7528\u7528\u6237\u6ce8\u518c\u7684 VEH \u56de\u8c03\u4e0e SEH \u8fc7\u6ee4\u5668\u3002<\/li>\n<li>\u9677\u9631\u6784\u5efa\u903b\u8f91&#xff1a;\u53cd\u8c03\u8bd5\u4ee3\u7801\u5728 SEH\/VEH \u5185\u90e8\u6697\u4e2d\u5c06 ContextRecord-&gt;Eip \u6307\u5411\u89e3\u5bc6\u540e\u7684\u771f\u5b9e\u6076\u610f\u5165\u53e3&#xff0c;\u5e76\u5c06\u5168\u5c40\u89e3\u5bc6 Key \u7d2f\u52a0\u3002\u82e5\u8c03\u8bd5\u5668\u6ca1\u6709\u8ba9\u8be5 Handler \u5b8c\u6574\u6267\u884c&#xff0c;\u89e3\u5bc6 Key \u5c06\u7f3a\u5931&#xff0c;\u5bfc\u81f4\u540e\u7eed\u4ee3\u7801\u89e3\u5bc6\u5931\u8d25\u800c\u5d29\u6e83\u3002<\/li>\n<h3>\u5178\u578b\u5f02\u5e38\u53cd\u8c03\u8bd5\u9677\u9631\u5b9e\u73b0<\/h3>\n<h4>1. \u57fa\u4e8e int 3&#xff08;0xCC&#xff09;\u4e0e VEH \u4e0a\u4e0b\u6587\u4fee\u6b63\u7684\u53cd\u8c03\u8bd5\u9677\u9631<\/h4>\n<p>\u5728\u6b63\u5e38\u8fd0\u884c\u65f6&#xff0c;int 3 \u6307\u4ee4\u4f1a\u4ea7\u751f STATUS_BREAKPOINT \u5f02\u5e38&#xff0c;\u968f\u540e\u7531\u9884\u5148\u6ce8\u518c\u7684 VEH \u6355\u83b7\u3002VEH \u68c0\u67e5\u5f02\u5e38\u5730\u5740&#xff0c;\u5e76\u5c06\u6307\u4ee4\u6307\u9488\u5411\u524d\u63a8\u8fdb 1 \u5b57\u8282\u5e76\u4fee\u6539\u5bc4\u5b58\u5668\u72b6\u6001&#xff1b;\u800c\u5728\u8c03\u8bd5\u5668\u73af\u5883\u4e0b&#xff0c;\u8c03\u8bd5\u5668\u9ed8\u8ba4\u4f1a\u5c06 int 3 \u89c6\u4e3a\u7528\u6237\u8bbe\u7f6e\u7684\u65ad\u70b9\u800c\u76f4\u63a5\u62e6\u622a&#xff0c;\u4ece\u800c\u66b4\u9732\u8c03\u8bd5\u884c\u4e3a\u3002<\/p>\n<p>#include &lt;windows.h&gt;<br \/>\n#include &lt;stdio.h&gt;<\/p>\n<p>\/\/ \u5168\u5c40\u6267\u884c\u72b6\u6001\u6807\u5fd7<br \/>\nstatic volatile BOOL g_is_debugged &#061; TRUE;<\/p>\n<p>\/\/ \u81ea\u5b9a\u4e49 VEH \u5f02\u5e38\u5904\u7406\u56de\u8c03<br \/>\nLONG WINAPI CustomVehHandler(PEXCEPTION_POINTERS pExceptionInfo) {<br \/>\n    \/\/ \u68c0\u67e5\u662f\u5426\u4e3a INT 3 \u89e6\u53d1\u7684\u65ad\u70b9\u5f02\u5e38<br \/>\n    if (pExceptionInfo-&gt;ExceptionRecord-&gt;ExceptionCode &#061;&#061; EXCEPTION_BREAKPOINT) {<br \/>\n        printf(&#034;[&#043;] VEH \u6355\u83b7\u5230\u9884\u671f\u7684\u65ad\u70b9\u5f02\u5e38&#xff0c;\u786e\u8ba4\u65e0\u8c03\u8bd5\u5668\u62e6\u622a\u6216\u5df2\u6b63\u786e\u4f20\u9012\\\\n&#034;);<\/p>\n<p>        \/\/ \u6807\u8bb0\u5f53\u524d\u5904\u4e8e\u5b89\u5168\u73af\u5883<br \/>\n        g_is_debugged &#061; FALSE;<\/p>\n<p>        \/\/ \u7ed5\u8fc7 INT 3 (0xCC&#xff0c;\u5360 1 \u5b57\u8282)&#xff0c;\u5c06 RIP\/EIP \u63a8\u8fdb\u5230\u4e0b\u4e00\u6761\u6307\u4ee4<br \/>\n#ifdef _M_X64<br \/>\n        pExceptionInfo-&gt;ContextRecord-&gt;Rip &#043;&#061; 1;<br \/>\n        \/\/ \u79d8\u5bc6\u4fee\u6539 RAX \u5bc4\u5b58\u5668\u4f5c\u4e3a\u540e\u7eed\u6821\u9a8c Token<br \/>\n        pExceptionInfo-&gt;ContextRecord-&gt;Rax &#061; 0x1337BEEF;<br \/>\n#else<br \/>\n        pExceptionInfo-&gt;ContextRecord-&gt;Eip &#043;&#061; 1;<br \/>\n        pExceptionInfo-&gt;ContextRecord-&gt;Eax &#061; 0x1337BEEF;<br \/>\n#endif<br \/>\n        \/\/ \u544a\u77e5\u5185\u6838&#xff1a;\u5f02\u5e38\u5df2\u5904\u7406\u5b8c\u6bd5&#xff0c;\u8bf7\u4ee5\u6b64\u4e0a\u4e0b\u6587\u6062\u590d\u6267\u884c<br \/>\n        return EXCEPTION_CONTINUE_EXECUTION;<br \/>\n    }<\/p>\n<p>    return EXCEPTION_CONTINUE_SEARCH;<br \/>\n}<\/p>\n<p>void test_veh_antidebug() {<br \/>\n    \/\/ \u6ce8\u518c\u5168\u5c40\u9996\u4f4d VEH \u5904\u7406\u7a0b\u5e8f<br \/>\n    PVOID hVeh &#061; AddVectoredExceptionHandler(1, CustomVehHandler);<\/p>\n<p>    printf(&#034;[*] \u89e6\u53d1\u4e3b\u52a8\u5f02\u5e38\u9677\u9631 (__debugbreak \/ int 3)&#8230;\\\\n&#034;);<\/p>\n<p>    \/\/ \u4e3b\u52a8\u89e6\u53d1 INT 3 \u5f02\u5e38<br \/>\n    __debugbreak();<\/p>\n<p>    \/\/ \u79fb\u9664 VEH \u53e5\u67c4<br \/>\n    RemoveVectoredExceptionHandler(hVeh);<\/p>\n<p>    \/\/ \u6821\u9a8c\u6267\u884c\u7ed3\u679c<br \/>\n    if (g_is_debugged) {<br \/>\n        printf(&#034;[!] \u68c0\u6d4b\u5230\u8c03\u8bd5\u5668\u5b58\u5728&#xff01;\u7a0b\u5e8f\u88ab\u8c03\u8bd5\u5668\u5f02\u5e38\u6355\u83b7\u63a5\u7ba1&#xff0c;\u6267\u884c\u81ea\u6bc1&#xff01;\\\\n&#034;);<br \/>\n        ExitProcess(0xDEAD);<br \/>\n    } else {<br \/>\n        printf(&#034;[&#043;] \u6b63\u5e38\u7a7f\u900f\u53cd\u8c03\u8bd5\u9677\u9631&#xff0c;\u6838\u5fc3\u903b\u8f91\u7ee7\u7eed\u6267\u884c&#8230;\\\\n&#034;);<br \/>\n    }<br \/>\n}<\/p>\n<h4>2. \u57fa\u4e8e INT 2D \u8c03\u8bd5\u670d\u52a1\u4e2d\u65ad\u9677\u9631<\/h4>\n<p>INT 2D \u662f Windows \u5185\u6838\u4e2d\u4e13\u7528\u4e8e\u8c03\u8bd5\u5b50\u7cfb\u7edf\u7684\u7279\u6b8a\u4e2d\u65ad\u3002<\/p>\n<ul>\n<li>\u5728\u65e0\u8c03\u8bd5\u5668\u8fd0\u884c\u65f6&#xff1a;INT 2D \u4f1a\u89e6\u53d1 EXCEPTION_ILLEGAL_INSTRUCTION \u6216\u8bbf\u95ee\u8fdd\u89c4\u5f02\u5e38&#xff0c;\u8fdb\u5165 SEH\u3002<\/li>\n<li>\u5728\u6709\u8c03\u8bd5\u5668\u8fd0\u884c\u65f6&#xff1a;Windows \u5185\u6838\u4f1a\u8ba4\u4e3a\u8fd9\u662f\u8fdb\u7a0b\u5728\u4e3b\u52a8\u5411\u8c03\u8bd5\u5668\u8f93\u51fa\u4fe1\u606f\u6216\u8bf7\u6c42\u65ad\u70b9&#xff0c;\u4f1a\u81ea\u52a8\u5403\u6389\u5f02\u5e38\u5e76\u5c06\u4e0b\u4e00\u6761\u6307\u4ee4\u7684 EIP \u989d\u5916\u63a8\u8fdb 1~3 \u5b57\u8282&#xff08;\u8df3\u8fc7\u540e\u7eed\u7d27\u968f\u7684 NOP \u6216 Padding \u6307\u4ee4&#xff09;\u3002\u6076\u610f\u7a0b\u5e8f\u901a\u8fc7\u5728 INT 2D \u540e\u9762\u653e\u7f6e\u6821\u9a8c\u6307\u4ee4&#xff0c;\u53ea\u8981\u53d1\u73b0\u6267\u884c\u504f\u79fb\u88ab\u5f02\u5e38\u7be1\u6539&#xff0c;\u5373\u53ef\u5224\u5b9a\u8c03\u8bd5\u5668\u5b58\u5728\u3002<\/li>\n<\/ul>\n<h3>\u9006\u5411\u5206\u6790\u6392\u67e5\u4e0e\u7ed5\u8fc7\u65b9\u6848<\/h3>\n<p>\u5728\u9762\u5bf9\u91cd\u5ea6\u4f9d\u8d56 SEH\/VEH \u53cd\u8c03\u8bd5\u7684\u6837\u672c\u65f6&#xff0c;\u9006\u5411\u5206\u6790\u4eba\u5458\u9700\u91c7\u7528\u4ee5\u4e0b\u5bf9\u6297\u7b56\u7565&#xff1a;<\/p>\n<p>\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502                    \u9006\u5411\u5206\u6790\u5e08\u7ed5\u8fc7\u5bf9\u6297\u65b9\u6848                   \u2502<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u252c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<br \/>\n\u2502 1. \u8c03\u8bd5\u5668\u5f02\u5e38\u8fc7\u6ee4\u914d\u7f6e       \u2502 \u5728 x64dbg \u4e2d\u914d\u7f6e\u201c\u5ffd\u7565\u7684\u5f02\u5e38\u201d   \u2502<br \/>\n\u2502                              \u2502 \u5c06 0x80000003, 0xC0000005     \u2502<br \/>\n\u2502                              \u2502 \u76f4\u63a5\u52fe\u9009 Pass to Program     \u2502<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<br \/>\n\u2502 2. VEH \/ SEH \u5173\u952e\u56de\u8c03\u4e0b\u65ad\u70b9 \u2502 \u5728 RtlDispatchException \u6216   \u2502<br \/>\n\u2502                              \u2502 AddVectoredExceptionHandler  \u2502<br \/>\n\u2502                              \u2502 \u51fd\u6570\u5904\u4e0b\u65ad&#xff0c;\u9759\u6001\u63d0\u53d6\u56de\u8c03\u5730\u5740 \u2502<br \/>\n\u251c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u253c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2524<br \/>\n\u2502 3. \u52a8\u6001\u4e8c\u8fdb\u5236\u63d2\u6869 (DBI)     \u2502 \u4f7f\u7528 Frida \/ QBDI \u6302\u94a9       \u2502<br \/>\n\u2502                              \u2502 \u62e6\u622a Context \u4fee\u6539\u5e76\u7ef4\u6301\u903b\u8f91  \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2534\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<li>x64dbg \u5f02\u5e38\u8bbe\u7f6e\u8c03\u4f18&#xff1a;\u8fdb\u5165 Options -&gt; Preferences -&gt; Exceptions&#xff0c;\u5728\u5f02\u5e38\u5217\u8868\u4e2d\u5c06 STATUS_BREAKPOINT&#xff08;0x80000003&#xff09;\u3001STATUS_SINGLE_STEP&#xff08;0x80000004&#xff09;\u53ca STATUS_ACCESS_VIOLATION&#xff08;0xC0000005&#xff09;\u6dfb\u52a0\u8fdb\u5ffd\u7565\u5217\u8868&#xff0c;\u5e76\u786e\u4fdd\u5728\u9047\u5230\u672a\u5904\u7406\u5f02\u5e38\u65f6\u52fe\u9009 Pass to application&#xff0c;\u5141\u8bb8\u6076\u610f\u7a0b\u5e8f\u7684 Handler \u5b8c\u6574\u83b7\u53d6\u63a7\u5236\u6743\u5e76\u4fee\u6539 Context\u3002<\/li>\n<li>Hook \u5f02\u5e38\u6d3e\u53d1\u4e2d\u67a2&#xff08;RtlDispatchException&#xff09;&#xff1a;\u5728\u5206\u6790\u5927\u578b\u590d\u6742\u58f3\u65f6&#xff0c;\u4e0d\u8981\u5355\u6b65\u8ddf\u8e2a\u5f02\u5e38&#xff0c;\u76f4\u63a5\u5728 ntdll!RtlDispatchException \u5904\u4e0b\u65ad\u70b9\u3002\u5f53\u65ad\u70b9\u89e6\u53d1\u65f6&#xff0c;\u4ece\u7b2c\u4e00\u53c2\u6570&#xff08;pExceptionRecord&#xff09;\u548c\u7b2c\u4e8c\u53c2\u6570&#xff08;pContext&#xff09;\u4e2d\u76f4\u63a5\u63d0\u53d6\u5f02\u5e38\u53d1\u751f\u4ee3\u7801\u4f4d\u7f6e\u548c\u5373\u5c06\u6267\u884c\u7684 Handler \u5730\u5740&#xff0c;\u5b9e\u73b0\u5bf9\u6df7\u6dc6\u63a7\u5236\u6d41\u7684\u7a7f\u900f\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790&#xff08;\u4e09&#xff09;&#xff1a;\u5f02\u5e38\u5904\u7406\u673a\u5236&#xff08;SEH\/VEH&#xff09;\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631\u5728 Windows \u5e73\u53f0\u7684\u9ad8\u5bf9\u6297\u6076\u610f\u4ee3\u7801\u5206\u6790\u4e0e\u4fdd\u62a4\u58f3\u9006\u5411\u4e2d&#xff0c;\u5f02\u5e38\u5904\u7406\u673a\u5236&#xff08;SEH &#8211; Structured Exception Handling \u4e0e VEH &#8211; Vectored Exception Handling&#xff09;\u4e0d\u4ec5\u662f\u7a0b\u5e8f\u5bb9\u9519\u7684\u6838\u5fc3\u57fa\u7840\u8bbe\u65bd&#xff0c;\u66f4\u662f\u5bf9\u6297\u52a8\u6001\u8c03\u8bd5\u5668&#xff08;\u5982 x6<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,594,50,100,51],"topic":[],"class_list":["post-103198","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-web","tag-50","tag-100","tag-51"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/103198.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790&#xff08;\u4e09&#xff09;&#xff1a;\u5f02\u5e38\u5904\u7406\u673a\u5236&#xff08;SEH\/VEH&#xff09;\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631\u5728 Windows \u5e73\u53f0\u7684\u9ad8\u5bf9\u6297\u6076\u610f\u4ee3\u7801\u5206\u6790\u4e0e\u4fdd\u62a4\u58f3\u9006\u5411\u4e2d&#xff0c;\u5f02\u5e38\u5904\u7406\u673a\u5236&#xff08;SEH - Structured Exception Handling \u4e0e VEH - Vectored Exception Handling&#xff09;\u4e0d\u4ec5\u662f\u7a0b\u5e8f\u5bb9\u9519\u7684\u6838\u5fc3\u57fa\u7840\u8bbe\u65bd&#xff0c;\u66f4\u662f\u5bf9\u6297\u52a8\u6001\u8c03\u8bd5\u5668&#xff08;\u5982 x6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/103198.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-09T18:17:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260909181724-6aa1a2b498112.webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103198.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/103198.html\",\"name\":\"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-09T18:17:25+00:00\",\"dateModified\":\"2026-09-09T18:17:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/103198.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/103198.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103198.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/103198.html","og_locale":"zh_CN","og_type":"article","og_title":"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790&#xff08;\u4e09&#xff09;&#xff1a;\u5f02\u5e38\u5904\u7406\u673a\u5236&#xff08;SEH\/VEH&#xff09;\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631\u5728 Windows \u5e73\u53f0\u7684\u9ad8\u5bf9\u6297\u6076\u610f\u4ee3\u7801\u5206\u6790\u4e0e\u4fdd\u62a4\u58f3\u9006\u5411\u4e2d&#xff0c;\u5f02\u5e38\u5904\u7406\u673a\u5236&#xff08;SEH - Structured Exception Handling \u4e0e VEH - Vectored Exception Handling&#xff09;\u4e0d\u4ec5\u662f\u7a0b\u5e8f\u5bb9\u9519\u7684\u6838\u5fc3\u57fa\u7840\u8bbe\u65bd&#xff0c;\u66f4\u662f\u5bf9\u6297\u52a8\u6001\u8c03\u8bd5\u5668&#xff08;\u5982 x6","og_url":"https:\/\/www.wsisp.com\/helps\/103198.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-09T18:17:25+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260909181724-6aa1a2b498112.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/103198.html","url":"https:\/\/www.wsisp.com\/helps\/103198.html","name":"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-09T18:17:25+00:00","dateModified":"2026-09-09T18:17:25+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/103198.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/103198.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/103198.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u53cd\u8c03\u8bd5\u6280\u672f\u5256\u6790\uff08\u4e09\uff09\uff1a\u5f02\u5e38\u5904\u7406\u673a\u5236\uff08SEH\/VEH\uff09\u4e0e\u53cd\u8c03\u8bd5\u9677\u9631"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=103198"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103198\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=103198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=103198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=103198"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=103198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}