Allow set foreground from PS by JohnMcPMS · Pull Request #5541 · microsoft/winget-cli

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@JohnMcPMS

Copy link

Member

@JohnMcPMS JohnMcPMS commented

Jun 17, 2025

edited by microsoft-github-policy-service bot

Loading

Change

Call CoAllowSetForegroundWindow from the PS module to prevent/reduce instances of the UAC prompt being launched but not foreground.

Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS JohnMcPMS merged commit 94b4348 into microsoft:master

Jun 19, 2025

9 checks passed

@JohnMcPMS JohnMcPMS deleted the set-fg branch

June 19, 2025 20:37

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

Reviewers

@yao-msft yao-msft yao-msft approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@JohnMcPMS @yao-msft