Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Conversation

@jaholme
Copy link
Contributor

@jaholme jaholme commented Sep 10, 2024

Summary of the pull request

Detect if the current process is elevated instead of whether the user… is in the administrator group for showing the Dashboard
If the user is running in a split token session (typical behavior for an administrator account with UAC enabled) the Widgets provider is running non-elevated and COM callbacks running in Dev Home(elevated) will not work.

However, if the user is running with UAC disabled and running everything as administrator by default Widgets service will also be running with the same token.

This change switches from detecting whether Dev Home is running as a user with the administrator SID to a check that determines if there is a split token for elevation.

For an account with UAC enabled Widgets will still not work:
image

However, for a device with UAC disabled running as admin they work:
image

References and relevant issues

Detailed description of the pull request / Additional comments

Validation steps performed

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

… is in the administrator group for showing the Dashboard
@jaholme jaholme requested review from bbonaby, guimafelipe, krschau and timkur and removed request for bbonaby September 10, 2024 23:08
Copy link
Contributor

@timkur timkur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@jaholme jaholme merged commit f96f181 into main Sep 13, 2024
@krschau krschau added this to the Dev Home v0.19 milestone Sep 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants