Skip to content

Commit

Permalink
Merge branch 'fix/shell-execute-w-link'
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Mar 7, 2024
2 parents 0c916ae + 2a62e84 commit 50b7a96
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,14 @@ mod ffi {
/// Null-terminated UTF-16 encoding of `open`.
pub const OPEN: *const u16 = [111, 112, 101, 110, 0].as_ptr();

#[link(name = "Shell32")]
extern "C" {
extern "system" {
pub fn ShellExecuteW(
hwnd: isize,
lpoperation: *const u16,
lpfile: *const u16,
lpparameters: *const u16,
lpdirectory: *const u16,
nshowcmd: i32,
) -> i32;
) -> isize;
}
}

0 comments on commit 50b7a96

Please sign in to comment.