I'm trying to recreate import libraries (.lib) for some Microsoft DLLs (I want to remove a few functions). It's possible to create lib files for dlls by using lib.exe on a def file. However it seems to be difficult to do that for __stdcall functions.
How to do this? Note: I have access to the dll and the original lib file.