Wednesday, January 14, 2015

Windows Phone vs. CE legacy

The Core Connectivity API totally works for Windows Phone 8.

They've changed CLSIDs of all classes and IIDs of all interfaces, but the new ones can be fairly easily seen in the registry. There are several new interfaces (ICcConnection2/3/4, notably) that make more sense for the Windows Phone security model. There's no arbitrary file/registry access that I can see (those methods return E_ACCESSDENIED), but some methods still work.

This new CoreCon has version numbers 10/11/12, which probably corresponds to Visual Studio 10/12/13 that it comes with. The DLLs are under C:\Program Files (x86)\Common Files\microsoft shared\Phone Tools\CoreCon\12.0\Bin. Most amazingly, the main DLL - ConMan2.dll - has debug symbols on Microsoft Symbol Server. Poking around it in a debugger or in a disassembler is a pleasure, considering.

Let's see how far this takes me. The LaunchApplication() method works, but I wonder what rights in the filesystem do I have...


  1. This comment has been removed by a blog administrator.

  2. Can this be achieved in VB.NET

  3. Replies
    1. Hi! I knew you via a topic from "Stackoverflow". The topic is "Cannot find System.Net.Sockets assembly for WP 8.1". Can you guide me how to resolve this problem? Because I am developing WP 8.1 for my thesis?
      Looking forward your answer and Thank you so much!

    2. In WP8.1 SDK, the socket classes are in namespace Windows.Networking.Sockets.