Why the Windows console does not use themes

    I don’t think it’s interesting to everyone and everyone, just a curious detail.
    Surely you have used CMD more than once, and not two. I am more than sure that you paid attention to the informality of the console window. This is all the more striking when you switch to Vista - in it the window title uses the current theme. What is the matter?

    Ok, go to the MS website - http://support.microsoft.com/kb/306509 . If anyone does not dare to click on the links containing microsoft.com, I quote the text from the support page with my own translation:
    "The command prompt window is launched under the Client Server Runtime System, which cannot be styled . "

    Frankly, everything is clearer than clear. It’s so clear that I could not resist and began to search further. It quickly became clear that I was not the only one so smart and the question was already popping up on Raymond Chen's blog . By the way, an interesting and well-known comrade, generally writes interestingly.

    Chen writes that CSRSS is a critical thing. Kick - it can fall apart, and with it drag off the whole system. That is, it is clear that she does not need extra bells and whistles. The CSRSS development team decided that they did not want to take risks, allowing the theme manager to execute their code under their process. On the other hand, designing the command line does not allow the architecture itself - CSRSS works as a separate subsystem and the design manager simply cannot access it.

    So what about Vista? And in Vista, writes Chen, CSRSS is not framed. The window frame is decorated, but not the console. Take a closer look - the scrollbar is still made in the classical style.
    The window manager paints the frame and, due to his fault, we can no longer drag and drop files into the console window. For security reasons, in Vista we cannot transfer messages from one service to another, a higher level. CSRSS is launched with a very high level of security and does not allow a random process (such as Explorer) to transmit its messages, which are used in drag and drop.

    Also popular now: