Device Driver Installations

Hi,

I am trying to install device drivers on both Windows Me and Windows 2000.
I wrote some code to user the SetupDi api calls and I do the following
lines:

DeviceInfoSet = SetupDiGetClassDevs(&CLSID_ClassId, NULL, NULL,
DIGCF_PROFILE );
fRC =
SetupDiGetINFClass(szDriverFilename,&ClassGUID,ClassName,sizeof(ClassName),0
);
if (!fRC) throw Error(“SetupDiGetINFClass”, FILE, LINE);
fRC = SetupDiCreateDeviceInfo(DeviceInfoSet, ClassName, &ClassGUID,NULL,
NULL, 1, &DeviceInfoData);
if (!fRC) ReportError();

On Windows ME, I get “The Data is invalid” for the SetupDiCreateDeviceInfo
call.

Does anyone have a sample of how to do it properly? Does anyone have any
working
samples I can look at? Does anyone have any tools to monitor dll function
calls
for setupapi.dll that works on Windows ME?

Joe McCloskey
Gamry Instruments, Inc.
xxxxx@gamry.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com