* 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:
wj32
2009-04-09 07:50:54 +00:00
parent 6cf9fac419
commit 6b4123f1a4
7 changed files with 10 additions and 11 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -1,6 +1,6 @@
@echo off
build
build -cZ
if not %errorlevel%==0 goto end
copy i386\kprocesshacker.sys ..\ProcessHacker\bin\Release\
:end
+1 -3
View File
@@ -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.
+2 -2
View File
@@ -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
+2 -1
View File
@@ -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;