The general way to deal with creating LIB from DLL is described in How to make a .lib file when have a .dll file and a header file - still, to create an import library for DLL with undecorated stdcall functions (e.g. core WinAPI DLL's, kernel32.dll etc.), one has to go through a rather lengthy and complicated process (as described e.g. here). For DLL with a lot of functions this process is very time consuming and error prone - it also fails easily in autobuild situations when the original DLL changes (e.g. due to vendor updates).
Is there an efficient way to automate it?