Using wininet.dll in Windows Phone 8.1 Silverlight Application

I am looking to set up a proxy in my windows phone application by calling methods on wininet.dll. I achieve this in a WinRT application using P / Invoke. Since P / Invoke doesn't work in WP8.1 silverlight app, after some searching I figured out how to do it: create a C ++ Windows Windows Runtime Component and wrap the wininet.dll calls inside it. What I can't figure out is how I wrap the wininet.dll calls in the runtime component. Attempting to reference a DLL in a WPRT component does not work: "Could not add reference for one of the following reasons: -Loads a higher version of .Net. -No .Net assembly -Not registered ActiveX control.".

How should I do it? Any help would be greatly appreciated.

+3


source to share





All Articles