format code: blank lines

This commit is contained in:
2015-01-18 21:32:37 +01:00
parent 6ffcca82e7
commit ade56d45a2
640 changed files with 12702 additions and 3882 deletions
@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2015 JPEXS
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -31,8 +31,11 @@ import java.util.Map;
public class Win32Process implements Process {
public String filePath;
public String fileName;
public BufferedImage icon;
public DWORD th32ProcessID;
@Override
@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2015 JPEXS
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
@@ -166,6 +166,7 @@ public class Win32ProcessTools extends ProcessTools {
}
return path;
}
private static final Map<String, Character> driveMappings = getDriveMappings();
public static boolean drawIcon(BufferedImage ret, WinDef.HICON hIcon, int diFlags) {
@@ -494,6 +495,7 @@ public class Win32ProcessTools extends ProcessTools {
}
return false;
}
private static boolean privAdjusted = false;
public static boolean adjustPrivileges() {
@@ -528,11 +530,17 @@ public class Win32ProcessTools extends ProcessTools {
private static class ProcessMemoryInputStream extends InputStream {
private final List<MEMORY_BASIC_INFORMATION> pages;
private int currentPage = 0;
private long pagePos = 0;
private static final int BUFFER_SIZE = 1024 * 512;
private byte[] buf;
private int bufPos;
private final HANDLE hOtherProcess;
public ProcessMemoryInputStream(List<MEMORY_BASIC_INFORMATION> pages, HANDLE hOtherProcess, int currentPage, long pagePos) {