[Ironpython-users] Fail to load setupapi.dll library in ironpython

Andrew Graham andy at agraham.demon.co.uk
Wed Apr 15 09:40:45 CEST 2015


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 at 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 at python.org
https://mail.python.org/mailman/listinfo/ironpython-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20150415/cf165048/attachment.html>


More information about the Ironpython-users mailing list