With static runtime linking and DllMain, I can't get them below about 100K. If I use my own entry point and don't use any C library stuff (usually hard to do) I can make them as small as 7K.
Duh! I saw all that when I built your elevated plugin. And then I remembered that we went through this before (thanks for not reminding me). UPX and an old Visual Studio explains it all.
I was working on a barebones version of my 4WT plugin (no exports except the three plugin-related ones). Its only purpose is to kludge around the popup location problem. In addition to using a custom entry point, disabling buffer overrun check and merging .pdata->.data brought the size down to 4608 bytes. That might be the limit. I tried more section merging to no avail.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.