aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/updater/syscall_windows.go
blob: 074ec164107017b696986816ca393782bf703d39 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: MIT
 *
 * Copyright (C) 2019-2020 WireGuard LLC. All Rights Reserved.
 */

package updater

import "golang.org/x/sys/windows"

//sys	isWow64Process2Internal(process windows.Handle, processMachine *uint16, nativeMachine *uint16) (err error) = kernel32.IsWow64Process2

func isWow64Process2(process windows.Handle) (processMachine, nativeMachine uint16, err error) {
	err = procIsWow64Process2.Find()
	if err != nil {
		return
	}
	err = isWow64Process2Internal(process, &processMachine, &nativeMachine)
	return
}