我的應用程序(純DotNET 2.0)引用另一個純粹的DotNET 2.0 dll,它將PInvoking引入非託管(C++ 2005)dll。在某些計算機上這工作得很好,對別人有一個一致的錯誤消息: Could not load file or assembly
'C:\Program Files\Rhinoceros 4.0\Plug-ins\Grasshopper\rhcommon_c.d
我已經使用以下CodeProject文章中提供的代碼成功,但它似乎只部分工作在Vista/7(我猜是因爲UAC) 。它適用於當前線程,但它不會接收系統範圍的活動。我已經嘗試在清單中添加requireAdministrator並簽署非託管和託管程序集,這似乎沒有幫助。 Using Window Messages to Implement Global System Hooks in C# 我的主要目
我試用了on a forum,Windows Aero Slideshow功能中的「Next Desktop Background」命令調用stobject.dll文件。於是我拼命地跑了DUMPBIN檢查wheter我可以瑟導出的方法來調用: Microsoft Visual Studio 9.0\VC\bin\dumpbin.exe /EXPORTS
Windows\System32\