Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6681743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:37:30+00:00 2026-05-26T04:37:30+00:00

Small question, was anyone able to control iTunes through any local webdeployment? Most preferable

  • 0

Small question, was anyone able to control iTunes through any local webdeployment?
Most preferable through a hosted IIS WCF service?

I’ve tried on my Windos 7 with IIS7.5 and when I set the Process Model – Identity to ‘Local System’ on the IIS apppool containing the WCF service, I see the iTunes.exe popping up in the Task Manager.
But iTunes doesn’t come ‘alive’ – no visual shell and even though the iTunesApp object is initialized in my WCF Service code, perfomring any actions on it won’t work.

Side not, running the same service through Visual Studio 2010 debug mode, everything works just great!

  • UPDATE *
    I was trying to communicate to iTunes through my windows phone and I thought of going round that with a website/service… but with the new Mango update we can do TCP sockets native on the phone! SO I’ll try that route.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:37:30+00:00Added an answer on May 26, 2026 at 4:37 am

    The reason service does not show any UI windows is becuase of Session Isolation. Your service (IIS application pool process) is running in session 0. Your desktop is attached to session 1 (or some other number if more than one user is logged on on this machine).

    There are couple of workarounds to allow services to show UI to user:
    1. You can mark service with option “Allow service to interact with desktop”. This only works for services that are running as local system. This option is deprecated, should only be used for compatibility with legacy services.
    2. Service can launch an intermediate process in user session and communicate to it.

    If you don’t want to interact with iTunes, and only want to lanch it in user session, what you need to do is:

    • Obtain name of windows station the user is running. You can use windows terminal services API for that. You will have to be creative to figure out which user session is currently active (if there is more than one). You probably also want to query user security token, so that process is run as a user, and not as a local system.
    • Call CreateProcessAsUser and pass STARTUPINFO structure. Set lpDesktop field in STARTUPINFO to point to window station you identified.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully this isn't too specific/small a question, but I was wondering if anyone knew
I've got this small question - given a bitmask of weekdays (e.g., Sunday =
I have an small question I didn't found an answer yet: how do I
Just a small question regarding joins. I have a table with around 30 fields
I've read all recommended articles on SynchronizationContext, but there is one small question I
I'm not much into COM interfaces, so i have a small question, say I
Small design question here. I'm trying to develop a calculation app in C#. I
A small - little question. I have seen many application having buttons like following.
This question is about programming small microcontrollers without an OS. In particular, I'm interested
Silverlight newbie question: I've got a small Silverlight application with the following XAML snippet:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.