WLDP_EXECUTION_POLICY enumeration (wldp.h)

Specifies result values for execution authorization queries with WldpCanExecuteBuffer, WldpCanExecuteFile, and WldpCanExecuteStream.

Syntax

typedef enum WLDP_EXECUTION_POLICY {
  WLDP_EXECUTION_POLICY_BLOCKED,
  WLDP_EXECUTION_POLICY_ALLOWED,
  WLDP_EXECUTION_POLICY_REQUIRE_SANDBOX
} ;

Constants

 
WLDP_EXECUTION_POLICY_BLOCKED
The subject does not pass execution policy and should not be executed.
WLDP_EXECUTION_POLICY_ALLOWED
The subject passes execution policy and should be executed normally
WLDP_EXECUTION_POLICY_REQUIRE_SANDBOX
While the subject does not pass execution policy, the execution policy allows for execution in a sandbox-like mode if one is available for the host. If a sandbox mode is available for the host, the script may be executed in that mode. Otherwise, the execution of the subject should be aborted.

Requirements

Requirement Value
Minimum supported client Windows 11, Build 22621
Minimum supported server Windows 11, Build 22621
Header wldp.h