mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 11:29:02 +00:00
windows: changes to install/upgrade/uninstallation process (#9025)
This commit is contained in:
@@ -3091,6 +3091,11 @@ pub extern "kernel32" fn OpenProcess(
|
||||
// https://learn.microsoft.com/en-us/windows/win32/procthread/process-security-and-access-rights
|
||||
pub const PROCESS_QUERY_LIMITED_INFORMATION: DWORD = 0x1000;
|
||||
|
||||
pub fn exePathW() [:0]const u16 {
|
||||
const image_path_unicode_string = &std.os.windows.peb().ProcessParameters.ImagePathName;
|
||||
return image_path_unicode_string.Buffer[0 .. image_path_unicode_string.Length / 2 :0];
|
||||
}
|
||||
|
||||
pub const KEY_EVENT_RECORD = extern struct {
|
||||
bKeyDown: BOOL,
|
||||
wRepeatCount: WORD,
|
||||
|
||||
Reference in New Issue
Block a user