hi,all
I want to write a custom installer for display mirror driver.
so i made a test on ntddk samples: \ntddk\src\general\setup\install and
\ntddk\src
\video\displays\mirror.After compiled them sucessfully I input the following
in the command line:
install fullpath\mirror.inf Microsoft_Mirror_Sample1
but failed.
Stepped into the source code
i found that
if(!SetupDiSetDeviceRegistryProperty(DeviceInfoSet,
&DeviceInfoData,
SPDRP_HARDWAREID,
(LPBYTE)HardwareId,
(lstrlen(HardwareId)+1+1)*sizeof(TCHAR)))
{
DisplayError(TEXT(“SetDeviceRegistryProperty”));
goto cleanup_DeviceInfo;
}
failed with error code ERROR_INVALID_PARAMETER
because DeviceInfoSet and DeviceInfoData was successfully created by
functions
SetupDiCreateDeviceInfoList and SetupDiCreateDeviceInfo previously.
I guess HardwareID was invalid.
here the HardwareID value is “Microsoft_Mirror_Sample1”,which coincide with
the value in mirror.inf
…
[Mirror.Mfg]
%Mirror% = mirror, Microsoft_Mirror_Sample1
…
any suggestions?
Thanks in advance
Ren zhijie
Send and receive Hotmail on your mobile device: http://mobile.msn.com