UpdateDriverForPlugAndPlayDevicesA running for W2K but failing for WXP.

Hi

In my code UpdateDriverForPlugAndPlayDevicesA is giving no error with win 2k

but it is giving error when I am runing it on win xp.

it displays the error code 1168, saying element not foud, which is not even
specifien in retun value.

can any body plese help me with solution.

Thanks
Bharat.