Reputation: 21
Is it possible to check if Data Execution Prevention is enabled?
Is there any function that works the same as this CMD command
wmic OS Get DataExecutionPrevention_SupportPolicy
And returns something like this?
0 – DEP is disabled for all processes.
1 – DEP is enabled for all processes.
2 – DEP is enabled for only Windows system components and services. (Default)
3 – DEP is enabled for all processes.
Upvotes: 0
Views: 2390
Reputation: 69662
This function returns a value of type DEP_SYSTEM_POLICY_TYPE, which can be one of the following values: AlwaysOff, AlwaysOn, OptIn, OptOut.
Upvotes: 1