We’ve been looking at why it seems like the CoreApplication. Properties frees objects when their source apartment shuts down, and why that is just a mirage. But this was all in the context of figuring out how to create a fake agile reference to an object that refuses to be marshaled, so let’s see if any of this helps us. If you have an object that refuses to be marshaled (by implementing INoMarsh
27 Nov 2026Practical development throughout the evolution of Windows.
Latest posts
Last time, we noticed that non-agile objects in the CoreApplication. Properties appear to behave differently from agile objects . I mean, it looks like they behave differently, but that’s only because you are taking too narrow a view. They behave the same if you interpret the rule as “The objects remain alive until there are no more apartments that can access them.” Non-agile objects can be used
26 Nov 2026Last time, we confirmed that entries in the CoreApplication. Properties are not tied to the lifetime of the apartment that added them . But Luca claimed that they did. Where did this claim come from? While it’s true that the entries don’t expire, the objects might expire. If the object you put into the CoreApplication. Properties are not agile, then they must be used in the apartment that create
25 Nov 2026Commenter Luca Bacci observed : Don’t know why, but last I tried the COM static store (runtime class “Windows.ApplicationModel.Core.CoreApplication”) was accessible from an unpackaged, Win32 application. It also seems to tie entries to the originating apartment lifetime (namely: the apartment from which the property is added). Can you shed some light? First part first: The COM static store is avai
24 Nov 2026Not too long ago, I noted that if you install multiple anti-malware products, they might each think the other is malware . I used a metaphor of hiring two security services to patrol your building and making sure they know about each other so that they don’t treat the other one as an intruder. And I noted that you can’t introduce software products to each other. But you can, sort of. You can add e
23 Nov 2026Last time, we looked at why asking SHGetFileInfo for the icon of .. (the parent folder) produces inconsistent results . One of the things the customer tried was concatenating the .. to the current directory: SHGetFileInfo(L"C:\\dir\\..", 0, &info, sizeof(info), SHGFI_ICON | SHGFI_SMALLICON | SHGFI_SYSICONINDEX); This in fact made it worse: The function failed! What’s going on? As I noted last ti
20 Nov 2026A customer wanted their program to show a file listing with icons, and they also wanted to include an entry for the parent folder, programmatically known as .. (double period). Update : The idea is that they are showing a file listing unrelated to the file system. For example, they are an online photo album browser. They want to show all the photos in the current album, plus an icon that means “Go
19 Nov 2026In the Windows documentation for various file system operations, you will often find a section in the Remarks that says This function is supported by the following technologies. Technology Supported Server Message Block (SMB) 3.0 protocol Yes SMB 3.0 Transparent Failover (TFO) Yes SMB 3.0 with Scale-out File Shares (SO) Yes Cluster Shared Volume File System (CsvFS) Yes Resilient File System (ReFS)
18 Nov 2026One of the questions in response to the Microsoft employee price list from 1987 came from Peter Cooper Jr. : Why is the MS-DOS BASIC Compiler cheaper than the MS-DOS BASIC Interpreter? That’s a good question. You’d think that since the compiler is more powerful, it should cost more. And it probably did cost more in stores. But this is the employee price list, and the policy for employee pricing at
17 Nov 2026Suppose you have two programs, one a GUI program and another a program that runs in the background. The GUI program asks the background program to do some work, and then the background program realizes that it needs to display a dialog box. How do you get that dialog box to appear as if it were shown by the GUI program? If you have the background program simply try to show a dialog box with no own
17 Nov 2026