Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How to install mirror display driver in a program?


1 reply to this topic

cplusplus

cplusplus
  • Members
  • 1 posts

Posted 29 March 2002 - 06:51

Hi,all
   I want to write a custom installer for a display mirror driver
and the only example for custom installer I've got is the sample from ddk,\ntddk\src\general\setup\install.But I failed to use the example to install my mirror driver.I stepped into the source code and found the line:
SetupDiSetDeviceRegistryProperty(DeviceInfoSet,
       &DeviceInfoData,
       SPDRP_HARDWAREID,
       (LPBYTE)HardwareId,
       (lstrlen(HardwareId)+1+1)*sizeof(TCHAR)))
failed with error code ERROR_INVALID_PARAMETER
I guess HardwareId is invalid,how can i fill this with a
correct value?

and suggestion?
Thanks in advance
            Ren zhijie

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 05 April 2002 - 17:32

Moving to General/Other Forum since this doesn't seem to be releated to MSI.