From: Frank Lichtenheld <[email protected]> newdev.h declares DiInstallDevice, DiInstallDriverA/W, DiRollbackDriver, DiShowUpdateDevice (all Vista+) and DiUninstallDevice (Win7+), but the lib32 and lib64 import libraries do not export them, so any program calling them fails to link with "undefined reference". The lib64 def file was generated in 2007 from a pre-Vista newdev.dll, and the lib32 one only ever contained UpdateDriverForPlugAndPlayDevices{A,W}.
libarm32/newdev.def, generated from the Windows RT 8.1 DLL, already lists all of these functions. Signed-off-by: Frank Lichtenheld <[email protected]> --- mingw-w64-crt/lib32/newdev.def | 6 ++++++ mingw-w64-crt/lib64/newdev.def | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/mingw-w64-crt/lib32/newdev.def b/mingw-w64-crt/lib32/newdev.def index d75d69443..ad1efb583 100644 --- a/mingw-w64-crt/lib32/newdev.def +++ b/mingw-w64-crt/lib32/newdev.def @@ -1,5 +1,11 @@ LIBRARY newdev.dll EXPORTS +DiInstallDevice@24 +DiInstallDriverA@16 +DiInstallDriverW@16 +DiRollbackDriver@20 +DiShowUpdateDevice@20 +DiUninstallDevice@20 UpdateDriverForPlugAndPlayDevicesA UpdateDriverForPlugAndPlayDevicesW UpdateDriverForPlugAndPlayDevicesA@20==UpdateDriverForPlugAndPlayDevicesA diff --git a/mingw-w64-crt/lib64/newdev.def b/mingw-w64-crt/lib64/newdev.def index 157d61efd..cdcadfd59 100644 --- a/mingw-w64-crt/lib64/newdev.def +++ b/mingw-w64-crt/lib64/newdev.def @@ -8,6 +8,12 @@ LIBRARY newdev.dll EXPORTS ClientSideInstallW DevInstallW +DiInstallDevice +DiInstallDriverA +DiInstallDriverW +DiRollbackDriver +DiShowUpdateDevice +DiUninstallDevice InstallDevInst InstallDevInstEx InstallNewDevice -- 2.53.0 _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
