setupapi.dll is an unmanaged library and is not directly callable from IronPython. If you really need it you will need to write a managed C# (or VB) wrapper assembly that accesses the required functions in the dll using P/Invoke (DllImport) and call into your wrapper from IronPython.
Regards Andy Graham From: Hemanth M B Sent: Wednesday, April 15, 2015 7:32 AM To: ironpython-users@python.org Subject: [Ironpython-users] Fail to load setupapi.dll library in ironpython Hi All, I tried to load setupapi.dll library in my code using import clr and addreference. But it throws error while adding reference. Error: SystemError: The module was expected to contain an assembly manifest. (Exception from HRESULT: 0x80131018) Reference: https://msdn.microsoft.com/en-us/library/windows/hardware/ff550855(v=vs.85).aspx Thanks and Regards, Hemanth M B -------------------------------------------------------------------------------- _______________________________________________ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org https://mail.python.org/mailman/listinfo/ironpython-users