Uninstalling IM driver on win 98

Hi,
Firstly, thnx to ppl who advised and helped me to get an intermediate
driver to install on windows 98.

The problems I am facing now are

  1. Uninstallation of the driver. Unable to do this.
    What I have done until now:
    a) DiCreateDeviceInfo with NetTrans as class name
    b) Search for the driver node with appropriate hardwareID which
    it finds
    c) set lpSelectedDriver as the DRIVER_NODE found
    c) Call DiCallClassInstaller with DIF_REMOVE as param on this

This does not seem to work. What am I doing wrong. What should I do to
get it right.

Also when I call DiCallClassInstaller with param DIF_INSTALLDEVICE the
system pops up a prompt to the user to

  1. give path to inf file
  2. give path to sys file
  3. give path to windows 98 setup files.
    Is there a way to get rid of these. I tried filling the values of
    different structure entries with no luck.

Thanks again
Sathish