Follow us on X (Twitter)  Like us on Facebook  Connect with us on LinkedIn  Subscribe to our YouTube Channel  Subscribe to our WhatsApp Group

Yesterday we discussed on Silverlight 5 RC Feature called PInvoke. Hope that was informative for you. We learned how to call system APIs from Silverlight application. We demonstrated this using In-Browser application, but you can use that for Out-Of-Browser too easily.

 

In Silverlight 4, if we wanted to access system drive or any files, we had to use the COM APIs and this was only applicable from Out-Of-Browser applications. In this article, we will show you the way to access system resources using PInvoke in Silverlight 5. You can call this directly from Browser applications as well as Out-Of-Browser applications. Read to know more.

Published by on under Silverlight | Silverlight5

Silverlight 5 RC (Release Candidate) has been already released. There are some new features already included in this build. Among them, one most important feature is PInvoke. PInvoke means Platform Invoke. By using this, you can directly talk to system resources without using COM APIs.

 

In this article, we will explore it more and show you how to open the "Run Dialog" directly from the Silverlight 5 application. Here also, we will use In-Browser application which you can easily port to Out-Of-Browser.

Published by on under Silverlight | Silverlight5