Skip to content

Set consoleAllocationPolicy=detached to shim manifest - #23

Open
sitiom wants to merge 1 commit into
kiennq:mainfrom
sitiom:patch-1
Open

Set consoleAllocationPolicy=detached to shim manifest#23
sitiom wants to merge 1 commit into
kiennq:mainfrom
sitiom:patch-1

Conversation

@sitiom

@sitiom sitiom commented Apr 8, 2026

Copy link
Copy Markdown

As of Windows 11 24H2, Windows added support for CONSOLE subsystem applications to opt out of automatic console allocation (learn.microsoft.com/en-us/windows/console/console-allocation-policy).

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <application>
    <windowsSettings>
      <consoleAllocationPolicy xmlns="http://schemas.microsoft.com/SMI/2024/WindowsSettings">detached</consoleAllocationPolicy>
    </windowsSettings>
  </application>
</assembly>

With that entry, the application will only get a console if it inherits one.

This would be useful for applications that have this value in their manifest, and it does not break existing behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant