Page 1 of 1

How-To Build Process Hacker

Posted: 04 Apr 2014 12:33
by dmex

How to build Process Hacker and Plugins from source code.

Requirements:
- Supported version of Windows:
  • Windows 7, 8 or 8.1
  • Windows Server 2008 R2 or 2012
  • 32bit or 64bit
- Visual Studio 2015 - Process Hacker Source code: Build Steps:
1. Browse to the
\processhacker2\build\internal\
directory and run
build_release.cmd
2. The
\processhacker2\ClientBin\
directory contains the compiled executables and release files.

Re: How-To Build Process Hacker

Posted: 10 Jun 2020 06:46
by victory
Compilation environment:
  • Microsoft Visual Studio Community 2019 Version 16.6.2
  • Windows 10 64bit
  • The source code is the master branch(commit 2e5d972f369cf80494059cc4d15dfcd22e4bddcc)
I'm compiling the project with undefined PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY and PROCESS_MITIGATION_POLICY_INFORMATION errors.

The detailed errors are as follows:
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(672,9): error C2061: syntax error: identifier 'PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY' (compiling source file basesup.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(673,5): error C2059: syntax error: '}' (compiling source file basesup.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(674,1): error C2059: syntax error: '}' (compiling source file basesup.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(672,9): error C2061: syntax error: identifier 'PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY' (compiling source file avltree.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(673,5): error C2059: syntax error: '}' (compiling source file avltree.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(674,1): error C2059: syntax error: '}' (compiling source file avltree.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(672,9): error C2061: syntax error: identifier 'PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY' (compiling source file appresolver.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(673,5): error C2059: syntax error: '}' (compiling source file appresolver.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(674,1): error C2059: syntax error: '}' (compiling source file appresolver.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(672,9): error C2061: syntax error: identifier 'PROCESS_MITIGATION_USER_SHADOW_STACK_POLICY' (compiling source file apiimport.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(673,5): error C2059: syntax error: '}' (compiling source file apiimport.c)
1>E:\OpenSource\github\processhacker\phnt\include\ntpsapi.h(674,1): error C2059: syntax error: '}' (compiling source file apiimport.c)
How can I solve this? Thanks for the advice.

Re: How-To Build Process Hacker

Posted: 10 Jun 2020 07:22
by dmex
You need the Windows SDK 10.0.19041.0

Re: How-To Build Process Hacker

Posted: 10 Jun 2020 07:59
by victory
I really appreciate your help! it works.