Skip to content

Commit

Permalink
Add blog link
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Jun 5, 2024
1 parent cc9f00d commit ad0ac56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/nsis-process/src/run_as_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ fn RunAsUser() -> Result<(), Error> {
}

/// Return true if success
///
/// Ported from https://devblogs.microsoft.com/oldnewthing/20190425-00/?p=102443
unsafe fn run_as_user(command: &str, arguments: &str) -> bool {
let hwnd = OwnedHandle::new(GetShellWindow());
if *hwnd == 0 {
Expand Down

0 comments on commit ad0ac56

Please sign in to comment.