c – How Can I remove “unnecessary” imports from a DLL in Visual Studio


I’m currently trying to make a dll for Windows 95. I am writing this app in C using Visual studio 2022 Community Edition. The Problem I am having is that there are a lot of imports from some dlls that are nowhere in the sourcecode or the headers. (at least as far as I can tell). imports from kernel32.dll like “isDebuggerPresent” or “InitializeCriticalSectionAndSpinCount” which do not exist in the windows 95 kernel32.dll. Originally there were a lot more imports but I managed to get rid of them by specifying “Multi-threaded (/MT)” under ” Configuration Properties > C/C++ > Code Generation > Runtime Library”. One solution that also came to my mind was to dig up an old version of visual studio, but I haven’t been able to find a still active download link for one.

I hope one of you can help me.

Leave a Reply

Your email address will not be published. Required fields are marked *