Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
I need to block an .exe file(application) using C++. Is there any code I have to refer? Kindly share some windows APIs to write the code.Thank you in advance.

What I have tried:

I noticed there is a code in C# here. I tried to convert it. Since I am not familiar with C#, I'm finding it difficult to convert.
Posted
Updated 22-Mar-21 22:55pm
v2

1 solution

Microsoft have examples in C++:
Adding a Service Rule | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900