Needed to link both cfgmgr.lib and setupapi.lib on Win98

Hello,

I am using a mixture of SetupX and CM_X APIs in a static libary (say library A). This part of code is restricted to getexecuted only for non-Win98and ME OSs. For this I used setapu.lib. It is working fine on Win 2000 and later version of NT-based OSs.

But It was not working on Win 98.

So I read somwhere that for Win 98 cfgmgr.lib should get load before setapi.lib.

In the modul ,there is a DLL which make use of library A. So I staticlly linked cfgmgr.lib to the DLL and setapi.lib was already linked to the library A.

The problem is that we actually do not want to add the cfgcmgr dependancy in DLL.
So do you know any other way with which we can static link both cfgmgr.lib and setupapi.lib?

Thanks,
Amruta.