Setup file path during device install

Hi all,

I need to find out which directory the driver is being installed from during
DIF_INSTALLDEVICE (not post-process).

For example:
The driver wizard comes up and picks the INF from c:\temp\driver_install.
Now when my co-installer get called with DIF_INSTALLDEVICE, I need to get
that path from somewhere.

I want to access files located in the same directory however I can’t assume
that the driver is being installed from any one location. Until now I have
just been hardcoding a:\ and installing my driver from a floppy.

I have tried calling SetupDiGetDeviceInstallParams (in order to access
SP_DEVINSTALL_PARAMS.DriverPath) but I have yet to get a successful return
from the call.

Any help would be greatly appreciated,
Chris