DCSIMG
Windows7 - All Your Base Are Belong To Us

All Your Base Are Belong To Us

Mostly .NET internals and other kinds of gory details

Browse by Tags

All Tags » Windows7 (RSS)
Restart Windows and Restart All Registered Applications: shutdown -g
The Windows Restart Manager (introduced in Windows Vista) supports gracefully shutting down and restarting applications that registered for restart with the RegisterApplicationRestart API. This functionality is used by Windows Update – thanks to the Restart Manager, when I come yawning to my desktop PC in the morning, even following a system restart, I have my Outlook, browser windows, OneNote, Visual Studio, and Messenger all lined up as they were when I went to bed. Suppose you want to initiate...
Debugging Windows Service Startup with Service Isolation
A year and a half ago I touched on the subject of debugging process startup , such as the startup of Windows Services, using the GFlags utility (the ImageFileExecutionOptions registry key). The general idea is to rely on the Windows loader to launch a debugger instead of the debugged process, and trace your way through the process startup code. Unfortunately, this relies on the debugged process to run in the same session as you—otherwise, you won’t be able to actually see the debugger. Starting from...
What Did My Manifest Do: A Referral Was Returned from the Server
The UAC section of an application’s manifest contains two simple settings under the <requestedExecutionLevel> element of the <requestedPrivileges> node: level – asInvoker, requireAdministrator, or highestAvailable. This setting controls whether the application will require elevation before it runs. uiAccess – true or false. This setting determines whether the application will exempt from UIPI rules introduced as part of the Windows Integrity Mechanism. If you really need the uiAccess...
Windows 7 How-To Videos: Libraries and Federated Search
More Windows 7 videos that I recorded have been posted on Channel 9. This installment deals with Windows 7 shell libraries and Federated Search, a subject that I haven’t covered in depth on my blog. The videos feature an introduction to shell libraries and demonstrate how to integrate your application with Windows 7 libraries from managed and native code, how to register for library change notifications (if you care about changes to library contents), and how to use Federated Search to integrate...
Windows 7 How-To Videos: Windows 7 Taskbar
Rather than make an HTML index of the videos , I figured it would be more convenient for my visitors to watch the videos directly from here, thanks to the Channel 9 embedding capabilities (and Silverlight). Introduction and Application ID Overlay Icons and Progress Bars Jump Lists Part 1 Jump Lists Part 2 Custom Previews and Thumbnail Clips Tabbed Thumbnails When more videos are posted, I will create new posts that will have them embedded.
Windows 7 How-To Videos: Introduction to the Windows 7 Taskbar
As part of our work on the Windows 7 training materials, I recorded 23 short how-to videos explaining how to use the new Windows 7 features from managed code (often using the Windows API Code Pack ) and from native code. Our Sela team, including Alon , Dima, Arik , and many others, collaborated on the slide decks, demo code, and other aspects of these recordings. The first installment of these videos is already live on Channel 9 —you can download or watch online six videos about the Windows 7 taskbar...
PDC 2009 Day 3: Developing Applications for Scale-Up Servers Running Windows Server 2008 R2
Pedro Teixeira is going to talk about processes and threads in systems with more than 64 logical processors as well as user-mode scheduling. Surprisingly for some people, NUMA is not an esoteric hardware architecture. Even high-end gaming rigs today are NUMA; Pedro is going to use a loaned machine by HP that has 256 processors with 1TB of physical memory. Processor Groups Adding support for more than 64 logical processors required a breaking app compat change, because CPU masks were represented in...
PDC 2009 Day 2: Developing with the Windows API Code Pack for Microsoft .NET Framework
Yochay , a good friend and co-author of “Introducing Windows 7 for Developers” and of the “Windows 7 Taskbar APIs” MSDN Magazine article , is delivering a presentation on the Windows API Code Pack . (Which is a library of managed APIs to interact with Vista and Windows 7 features that are otherwise accessible only from native code through COM and Win32 APIs.) This library replaces many of the sample managed integration libraries that our team at Sela developed for the Windows 7 Metro Training, such...
Introducing Windows 7 for Developers: Foreword by Mark Russinovich
Before Mark’s session today at the PDC, I exhibited typical Israeli chutzpah while he was helping himself for some coffee, and introduced myself as one of the co-authors of Introducing Windows 7 for Developers . Mark did us the honor of writing the book’s foreword, and he even found it useful for the Disk2vhd Sysinternals utility which creates a virtual machine hard disk from your existing physical disk – the latest release of the utility shows the operation’s progress using the Windows 7 taskbar...
PDC 2009 Day 1: Windows 7 and Windows Server 2008 R2 Kernel Changes
It’s not the first time that I hear Mark Russinovich ’s session on the Windows 7 and Windows Server 2008 R2 kernel changes. Eran Stiller wrote a good post summarizing the main kernel changes (based on the materials from the Windows 7 Bootcamp at the PDC pre-conference day), so I’m not going to repeat the same here. Additionally, you can watch Mark talk about Windows 7 internal changes on Channel 9 . Among the biggest kernel changes are optimizations that have to do with scaling Windows to hundreds...
Introducing Windows 7 for Developers
Our book, “ Introducing Windows 7 for Developers ”, is now in stock on Amazon! Several months ago, Alon Fliess , Yochay Kiriaty , Laurence Moroney and I decided to write a Windows 7 book for developers. With the abundance of new features in Windows 7 and the great interest from the developer community, we just had to write a book about Windows 7 from a developer perspective :-) I’m at the PDC right now, and I already had an opportunity to sign a couple of Yochay’s copies—it feels amazing to finally...
C++ Wrapper for Windows 7 Taskbar Tabbed Thumbnails
A few weeks ago we took a detailed look at the intrinsic details of providing Windows 7 taskbar tab thumbnails and live previews in a Win32 application . As part of that post I mentioned a C++ wrapper called TabWindow which takes care of most of the nasty details and leaves only the work of creating the tab controls and rendering them to the application developer. Here’s the public API of the TabWindow class and its corresponding TabWindowEventsSink callback interface (slightly edited to fit): class...
Creating a Custom Windows 7 Troubleshooting Pack
Windows 7 offers a built-in troubleshooting platform that consolidates the typical user’s support and troubleshooting needs into a single consistent user interface with dozens of specific troubleshooters for common problems. If you haven’t seen the Troubleshooting Platform in action yet, go ahead and type “troubleshooting” into your Windows 7 start menu and open the Troubleshooting control panel applet. You can try some of the troubleshooters now. I’ll wait here. One of the easiest ones to repro...
Windows 7 Taskbar: Tabbed Thumbnails and Previews in Native Code
A few months ago, we’ve taken a look at how you can extend your MDI or TDI application with an individual thumbnail and live preview for each tab (or document) that will be displayed in the Windows 7 taskbar. We’ve seen the temporary managed wrapper that makes this possible, and in the final 1.0 release of the Windows API Code Pack there is a more polished managed API that does the same thing. However, in this post I’d like to focus on the underlying details which you will have to deal with if you...
Windows 7 RTM Training Kit Updates
Windows 7 RTM is out for a few days now for MSDN and TechNet subscribers, and together with the release of the final bits, Microsoft DPE released the final bits of the Windows 7 Training Kit . Our team at Sela worked days and nights to meet the RTM deadline. Specifically, Alon wrote new multi touch and Libraries hands-on labs, Dima (with Ariel ’s help) wrote new labs for the Sensors and Location platform, and I wrote a pair of new labs for taskbar features, one using the final 1.0 release of the...
More Posts Next page »