Process Hacker and Windows discussion

 
User avatar
dmex
Admin
Posts: 1562
Joined: 17 Jan 2011 05:43
Location: Australia

How-To Build Process Hacker

04 Apr 2014 12:33

Note

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.
Last edited by dmex on 16 Nov 2016 07:14, edited 2 times in total.
Reason: Updated build script steps
 
victory
New User
Posts: 2
Joined: 10 Jun 2020 06:04
OS: windows 10 64bit
Location: china

Re: How-To Build Process Hacker

10 Jun 2020 06:46

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.
Last edited by victory on 10 Jun 2020 07:03, edited 1 time in total.
 
User avatar
dmex
Admin
Posts: 1562
Joined: 17 Jan 2011 05:43
Location: Australia

Re: How-To Build Process Hacker

10 Jun 2020 07:22

You need the Windows SDK 10.0.19041.0
 
victory
New User
Posts: 2
Joined: 10 Jun 2020 06:04
OS: windows 10 64bit
Location: china

Re: How-To Build Process Hacker

10 Jun 2020 07:59

I really appreciate your help! it works.