/** * Run the Windows program natively in an elevated privilege * * @param winExe, windows executable to run * @param args, arguments to pass * @param logFile, File where the logs of the process should go * @param pwd, Path of the working directory * @return int, process exit code * @throws hudson.util.jna.Native.NativeExecutionException */ public int windowsExec(File winExe, String args, String logFile, File pwd) throws NativeAccessException { ensureWindowsSupport(NativeFunction.WINDOWS_EXEC); return nativeWindowsSupport.windowsExec(winExe, args, logFile, pwd); }