DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Some curious facts about the Windows Phone 7 OS - from the emulator console

Denzel D. user avatar by
Denzel D.
·
Feb. 11, 11 · Interview
Like (0)
Save
Tweet
Share
8.57K Views

Join the DZone community and get the full member experience.

Join For Free

There is an interesting post by Nick Randolph that shows how to display the console tied to the Windows Phone 7 emulator. It is a tool that is not officially documented by Microsoft but nonetheless provides some insight as to how the mobile system works. After looking at the output for a while, here are some general observations about the Windows Phone 7 OS. The guys from xda-developers are probably well-aware of the possibilities, but this is an open method that is accessible to general public and can be tested with the existing WP7 SDK.

If the console is enabled, for some cases it is possible to see some failed loads that are referenced in CPP source files inside an actual folder:

Notice the actual path used: w:\winceroot\private\comnsplatform\ccmapi\lib\ It is safe to assume that winceroot is the main system folder that contains system data (e.g. the system libraries and language files). What's interesting is the fact that the output shows there are actual CPP files (C++ source files).

Similarly, when the application is installed on the current system instance, it is possible to track down the installation path:

Looking further, there seems to be an internal console (also known as a terminal) that accepts command related to system behavior:

While the emulator is loading the application and even when the user is in the actual system layer (e.g. using system functionality rather than an app), these commands will be shown. The purpose of each of them currently is unknown to me.

Same as in any version of Windows (plus, given the fact that Windows Phone 7 is based on the CE 6 kernel), windows  (as in application windows) have handles:

Unfortunately, there is no direct method to access the window handle since the system is pretty much a closed environment. As you can see from the image below, there is also a registry (not new - the same was present in previous releases of Windows CE) and there seems to be a resource cache:

It's interesting to see how resources and applications are called internally. Via a system navigation service, those are referenced with a res:// prefix. For example:

This would be the web browser. Whenever the user navigates to a specific system component, it seems to be called via the same resource accessor (e.g. Settings and even every separate widget there):

Whenever I tried sharing anything from the web browser, I was only able to access the message shaing mechanism (mocked SMS):

That would be my only choice in a locked emulator, however when I took a look at the console, there was an interesting thing shown:

There is actually a FBAuthClient.dll that links the phone to a Facebook account but due to specific policy restrictions, the emulator fails to load it (although there is an attempt).

There is much more in the console and I tried to highlight the most important parts. All this functionality is currently unavailable as a part of the public SDK. Currently, there is no navigation service that would allow a developer navigate to a system resource (read: item in the system application/widget list) - the current NavigationService doesn't play a major role here and will block all outgoing requests to a resource. Files as well as the registry are also not accessible for now, although there was already a workaround mentioned that allowed native invocation. The purpose of this short review is mostly educational - out of curiosity, it is interesting to see what goes behind the curtains, even though you cannot access it via documented methods. 

Windows Phone Console (video game CLI)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • How Observability Is Redefining Developer Roles
  • What Is a Kubernetes CI/CD Pipeline?
  • The Quest for REST
  • Upgrade Guide To Spring Data Elasticsearch 5.0

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: