I read about using P/Invoke through Silverlight 5 and tried and it works. But it only works in a trusted environment. This means that applications downloaded from the remote website is not run in an elevated trust.
I digitally signed my application with self signed test certificate but it is stuck only to my computer. I would like to be able to create a certificate with public key that can be used to elevate trust to my application downloaded from internet site and to be working on any PC.
It is good to me if the user needs to install the certificate manually.
It will be better to make this procedure automatic but let's resolve problems step by step.