mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
* fixed resources for KProcessHacker
* switched KPH to free build * fixed DEP editing (hopefully) on XP * added version number to PH Assistant git-svn-id: svn://svn.code.sf.net/p/processhacker/code@1035 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("1.3.6.5")]
|
||||
[assembly: AssemblyFileVersion("1.3.6.5")]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
|
||||
build
|
||||
build -cZ
|
||||
if not %errorlevel%==0 goto end
|
||||
copy i386\kprocesshacker.sys ..\ProcessHacker\bin\Release\
|
||||
:end
|
||||
@@ -20,9 +20,7 @@
|
||||
* along with Process Hacker. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#define DEBUG
|
||||
|
||||
#ifdef DEBUG
|
||||
#ifdef DBG
|
||||
#define dprintf DbgPrint
|
||||
#else
|
||||
#define dprintf
|
||||
|
||||
Binary file not shown.
@@ -4,8 +4,8 @@ TARGETPATH=.\
|
||||
|
||||
INCLUDES=$(DDK_INC_PATH)
|
||||
LIBS=%BUILD%\lib
|
||||
RC=resource.rc
|
||||
|
||||
SOURCES= \
|
||||
kprocesshacker.c \
|
||||
kph_nt.c
|
||||
kph_nt.c \
|
||||
resource.rc
|
||||
|
||||
@@ -97,7 +97,8 @@ namespace ProcessHacker
|
||||
if (setProcessDEPPolicy == 0)
|
||||
throw new Exception("This feature is not supported on your version of Windows.");
|
||||
|
||||
using (Win32.ProcessHandle phandle = new Win32.ProcessHandle(_pid, Win32.PROCESS_RIGHTS.PROCESS_CREATE_THREAD))
|
||||
using (Win32.ProcessHandle phandle = new Win32.ProcessHandle(_pid,
|
||||
Program.MinProcessQueryRights | Win32.PROCESS_RIGHTS.PROCESS_CREATE_THREAD))
|
||||
{
|
||||
var thread = phandle.CreateThread(setProcessDEPPolicy, (int)flags,
|
||||
Win32.THREAD_RIGHTS.THREAD_ALL_ACCESS);
|
||||
|
||||
@@ -247,7 +247,7 @@ namespace ProcessHacker
|
||||
// or:
|
||||
// 1. the function-to-library ratio is lower than 4
|
||||
// (on average less than 4 functions are imported from each library)
|
||||
// 2. it references more than 3 libraries
|
||||
// 2. it references more than 3 libraries but less than 14 libraries.
|
||||
if (fileName != null)
|
||||
{
|
||||
try
|
||||
@@ -267,7 +267,7 @@ namespace ProcessHacker
|
||||
|
||||
if (
|
||||
libraryTotal < 3 && funcTotal < 5 ||
|
||||
((float)funcTotal / libraryTotal < 4) && libraryTotal > 3
|
||||
((float)funcTotal / libraryTotal < 4) && libraryTotal > 3 && libraryTotal < 14
|
||||
)
|
||||
fpResult.IsPacked = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user