2

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

Garett
  • 16,632
  • 5
  • 55
  • 63
user220079
  • 21
  • 2

1 Answers1

1

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.

Garett
  • 16,632
  • 5
  • 55
  • 63