开发者

Native Integration in Silverlight 4

开发者 https://www.devze.com 2022-12-12 13:04 出处:网络
a question concerning the new concept of Trusted Applications in Silverlight 4: I gather that trusted applications run outside the browser with elevated trust. Will it therefore be possible to 开发者

a question concerning the new concept of Trusted Applications in Silverlight 4:

I gather that trusted applications run outside the browser with elevated trust. Will it therefore be possible to 开发者_如何学编程call arbitrary functions in unmanaged DLLs (by means of DllImport) from a trusted application or is this feature still reserved to proper desktop applications?

Thank you very much in advance and kind regards,

Marc Frei


Unfortunately, Silverlight 4 does not allow calling unmanaged code via P/Invoke. You can only call native code using the COM via the AutomationFactory class. However, calling native code was added to Silverlight 5.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号