![]() The function returns TRUE if a device was upgraded to the specified driver. It is then the caller's responsibility to prompt for a restart.įor more information, see the following Remarks section. If the pointer is supplied, the function returns a BOOLEAN value that is TRUE if the system should be restarted. If the pointer is NULL, UpdateDriverForPlugAndPlayDevices prompts for a restart after installing drivers, if necessary. This pointer is optional and can be NULL. The InstallFlags parameter is typically zero.Ī pointer to a BOOL-typed variable that indicates whether a restart is required and who should prompt for it. ![]() ![]() If this flag is set and the function finds a device that matches the HardwareId value, the function installs new drivers for the device whether better drivers already exist on the computer. UpdateDriverForPlugAndPlayDevices copies driver files to the appropriate system locations if the installation is successful.Ī caller-supplied value created by using OR to combine zero or more of the following bit flags: INSTALLFLAG_FORCE ![]() The files should be on the distribution media or in a vendor-created directory, not in a system location such as %SystemRoot%\inf. For more information about hardware identifiers, see Device Identification Strings.Ī pointer to a NULL-terminated string that supplies the full path file name of an INF file. The maximum length of a NULL-terminated hardware identifier is MAX_DEVICE_ID_LEN. Syntax BOOL UpdateDriverForPlugAndPlayDevicesA(Ī handle to the top-level window to use for any UI related to installing devices.Ī pointer to a NULL-terminated string that supplies the hardware identifier to match existing devices on the computer. Given an INF file and a hardware ID, the UpdateDriverForPlugAndPlayDevices function installs updated drivers for devices that match the hardware ID. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |