<div dir="ltr"><div dir="ltr">You can find the result with below simple code : <br><br>#include <windows.h><br>#include <iostream><br><br>#include <gdiplusenums.h><br>#include <gdiplustypes.h><br><br>#include <gdiplusgpstubs.h><br>#include <gdiplusmetaheader.h><br><br>#include <gdipluspixelformats.h><br>#include <gdipluscolor.h><br>#include <gdipluscolormatrix.h><br>#include <gdiplusimaging.h><br>struct IDirectDrawSurface7;<br>#include <gdiplusflat.h><br><br>#pragma comment(lib,"gdiplus")<br><br>typedef GpStatus<br>(*pfnGdipEnumerateMetafileSrcRectDestRectI)(<br>       GpGraphics* graphics,<br> GDIPCONST GpMetafile* metafile,<br>       GDIPCONST Rect* destRect,<br>     GDIPCONST Rect* srcRect,<br>      Unit                    srcUnit,<br>    EnumerateMetafileProc   callback,<br>    VOID* callbackData,<br>   GDIPCONST GpImageAttributes* imageAttributes<br>  );<br><br>int main()<br>{<br><br> pfnGdipEnumerateMetafileSrcRectDestRectI pfunc = (pfnGdipEnumerateMetafileSrcRectDestRectI)GetProcAddress(GetModuleHandleA("gdiplus"), "GdipEnumerateMetafileSrcRectDestRectI");<br>  __try {<br>               <br>              pfunc(0, 0, 0, 0, UnitDisplay, 0, 0, 0);<br>              printf("ok\n");<br>     }<br>     __except (EXCEPTION_EXECUTE_HANDLER)<br>  {<br>             printf("Executing SEH __except block\r\n");<br> }<br>     system("pause");<br><br>  return 0;<br>}<br><br>I have tested in win7, win10 and the program goes to the exception handler in both environments. <br><br>Thanks.</div></div>