Skip to content

Commit

Permalink
fix(windows): link using "system" ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Mar 7, 2024
1 parent 0c916ae commit 2a62e84
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 2a62e84

Please sign in to comment.