-
Notifications
You must be signed in to change notification settings - Fork 368
Undocked Reg-Free WinRT Activation isn’t enabled for Packaged Self-Contained apps on < 19H1 devices #5623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@@ -13,10 +13,13 @@ | |||
|
|||
#include <../Detours/detours.h> | |||
|
|||
static bool isPackaged = AppModel::Identity::IsPackagedProcess(); | |||
static bool is19H1OrGreater = WindowsVersion::IsWindows10_19H1OrGreater(); | |||
|
|||
static HRESULT DetoursInitialize() | |||
{ | |||
// Only detour APIs for not-packaged processes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Only detour APIs for not-packaged processes | |
// Detours needed for Lifted Reg-Free WinRT Activation before 19H1, and Dynamic Dependencies in unpackaged apps |
if (!isPackaged && !is19H1OrGreater) | ||
{ | ||
FAIL_FAST_IF_FAILED(MddDetourPackageGraphInitialize()); | ||
FAIL_FAST_IF_FAILED(UrfwInitialize()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!isPackaged && !is19H1OrGreater) | |
{ | |
FAIL_FAST_IF_FAILED(MddDetourPackageGraphInitialize()); | |
FAIL_FAST_IF_FAILED(UrfwInitialize()); | |
} | |
if (!isPackaged) | |
{ | |
FAIL_FAST_IF_FAILED(MddDetourPackageGraphInitialize()); | |
} | |
if (!is19H1OrGreater) | |
{ | |
FAIL_FAST_IF_FAILED(UrfwInitialize()); | |
} |
{ | ||
FAIL_FAST_IF_FAILED(MddDetourPackageGraphInitialize()); | ||
FAIL_FAST_IF_FAILED(UrfwInitialize()); | ||
} | ||
FAIL_FAST_IF_WIN32_ERROR(DetourTransactionCommit()); | ||
return S_OK; | ||
} | ||
|
||
static HRESULT DetoursShutdown() | ||
{ | ||
// Only detour APIs for not-packaged processes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Only detour APIs for not-packaged processes | |
// Detours needed for Lifted Reg-Free WinRT Activation before 19H1, and Dynamic Dependencies in unpackaged apps |
if (!isPackaged && !is19H1OrGreater) | ||
{ | ||
UrfwShutdown(); | ||
MddDetourPackageGraphShutdown(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!isPackaged && !is19H1OrGreater) | |
{ | |
UrfwShutdown(); | |
MddDetourPackageGraphShutdown(); | |
} | |
if (!is19H1OrGreater) | |
{ | |
UrfwShutdown(); | |
} | |
if (!isPackaged) | |
{ | |
MddDetourPackageGraphShutdown(); | |
} |
Bug fix for #3133
A microsoft employee must use /azp run to validate using the pipelines below.
WARNING:
Comments made by azure-pipelines bot maybe inaccurate.
Please see pipeline link to verify that the build is being ran.
For status checks on the main branch, please use TransportPackage-Foundation-PR
(https://microsoft.visualstudio.com/ProjectReunion/_build?definitionId=81063&_a=summary)
and run the build against your PR branch with the default parameters.