iPX Directory

Directory Technology

The Old New Thing

1 person subscribes

Paste it into any podcast app or feed reader to subscribe.

Practical development throughout the evolution of Windows.

Latest posts

Could we use the CoreApplication Properties to manage the lifetime of an object that refuses to be marshaled?

We’ve been looking at why it seems like the Core­Application. 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 2026
What happens when you put a non-agile object in the CoreApplication Properties?

Last time, we noticed that non-agile objects in the Core­Application. 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 2026
Why did it seem that the entries in the CoreApplication Properties expired when the source application shut down?

Last time, we confirmed that entries in the Core­Application. 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 Core­Application. Properties are not agile, then they must be used in the apartment that create

25 Nov 2026
What happens to entries in the CoreApplication Properties when the source apartment shuts down?

Commenter 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 2026
Having two security products installed at the same time isn’t a great idea, but sometimes you have to do it

Not 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 2026
Another failed attempt to get the icon for the icon for the .. parent folder

Last time, we looked at why asking SHGet­File­Info 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 2026
Why do I get inconsistent results when I ask for the icon for the .. parent folder?

A 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 2026
If the Windows documentation doesn’t list a particular technology as supporting an operation, does that mean that it doesn’t support it?

In 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 2026
In the Microsoft employee price list, why did the BASIC compiler cost less than the BASIC interpreter?

One 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 2026
How can I ask a second program to show a dialog box as if it were shown by my first program?

Suppose 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