SetupDiCallClassInstaller failed with error code 13 in Windows 7

I have any application which disable or enable the USB storage device programmatically. I do disable and enable using the api SetupDiCallClassInstaller with DIF_PROPERTYCHANGE parameter.Its working fine in windows XP .but in windows 7 it gets failed sometimes with error code 13 .

when i saw the error code 13, The data is invalid. but the same appliction is working in XP without any problem. But in windows 7, its working but sometimes it gives the error.

looking forward to hearing from you

Regards

Navaneeth M

Are you running elevated?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@aol.in
Sent: Tuesday, July 13, 2010 10:46 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] SetupDiCallClassInstaller failed with error code 13 in Windows 7

I have any application which disable or enable the USB storage device programmatically. I do disable and enable using the api SetupDiCallClassInstaller with DIF_PROPERTYCHANGE parameter.Its working fine in windows XP .but in windows 7 it gets failed sometimes with error code 13 .

when i saw the error code 13, The data is invalid. but the same appliction is working in XP without any problem. But in windows 7, its working but sometimes it gives the error.

looking forward to hearing from you

Regards

Navaneeth M


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

yes,I am running it elevated . The application is a windows service.