flat assembler
Message board for the users of flat assembler.
Index
> Windows > I want TerminateProcess for NsCpuCNMiner.exe\HostXmrig.exe |
Author |
|
Roman 15 Nov 2017, 08:20
I write this http://www.betamaster.us/blog/?p=657
But not help me. |
|||
15 Nov 2017, 08:20 |
|
revolution 15 Nov 2017, 08:30
Check the error code returned by TerminateProcess. That should tell you why it failed. Don't simply assume all API calls will succeed.
|
|||
15 Nov 2017, 08:30 |
|
Roman 15 Nov 2017, 09:06
ERROR_INVALID_HANDLE
6 The handle is invalid. |
|||
15 Nov 2017, 09:06 |
|
revolution 15 Nov 2017, 09:56
What is the error code returned by OpenProcess?
|
|||
15 Nov 2017, 09:56 |
|
Roman 15 Nov 2017, 12:38
ERROR_ACCESS_DENIED
5 (0x5) Access is denied. |
|||
15 Nov 2017, 12:38 |
|
Roman 15 Nov 2017, 12:47
How i understood i must do
AdjustProcessPrivilege(GetCurrentProcess(), _T("SeDebugPrivilege"), TRUE) Or AdjustTokenPrivileges |
|||
15 Nov 2017, 12:47 |
|
revolution 15 Nov 2017, 13:31
Yes, you must enable the privilege to perform certain actions. On current versions of Windows even if you are logged in as an administrator you must still do this.
|
|||
15 Nov 2017, 13:31 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.