Win32 Desktop Applications Calling WinRT APIs on Windows 8: Which Contracts Cross the Boundary
0 reputation · 19 Sept 2026, 01:29 UTC
0 reputation · 19 Sept 2026, 01:29 UTC
I am designing an application for Windows 8 where a traditional Win32 desktop process needs to consume functionality that appears to exist only in the Windows Runtime (WinRT) surface, such as the share contract or certain system settings exposed through the Charm bar. The documented model states that desktop apps may call a subset of WinRT APIs, while Store apps are restricted from direct Win32 access, but the exact subset and the activation requirements are unclear to me.
The target is Windows 8 (not 8.1), so behaviors added in 8.1 such as boot-to-desktop are out of scope. I need to know whether a plain, unpackaged Win32 executable can activate WinRT components that assume an app-container identity, and whether contract-based features like Share require the calling app to participate in the Modern UI lifecycle rather than running as a background desktop process.
Given the asymmetric interop rules, I am unsure which side of the boundary should own the feature.
A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.