Thema: Delphi Treiberinstallation

Einzelnen Beitrag anzeigen

Benutzerbild von Remko
Remko

Registriert seit: 10. Okt 2006
Ort: 's-Hertogenbosch, Die Niederlande
222 Beiträge
 
RAD-Studio 2010 Arc
 
#4

Re: Treiberinstallation

  Alt 29. Aug 2007, 20:58
MSDN says:
Zitat:
SourceFile
[in] Optional pointer to the file name (no path) of the file to copy. The file is looked up in the SourceDisksFiles section. The SourceFile parameter must be specified if InfContext is not. SourceFile is ignored if InfContext is specified.
I presume that the inf file must be in systemroot\inf or that you must use either supply an InfHandle if the file is in another path or that you must specify the path in SourcePathRoot parameter.

Edit: a HINF can be obtained by calling MSDN-Library durchsuchenSetupOpenInfFile, there you can give an optional path:
Zitat:
FileName
[in] Pointer to a null-terminated string containing the name (and optional path) of the INF file to be opened. If the filename does not contain path separator characters, it is searched for, first in the %windir%\inf directory, and then in the %windir%\system32 directory. If the filename contains path separator characters, it is assumed to be a full path specification and no further processing is performed on it.
  Mit Zitat antworten Zitat