23 DontResolveDllReferences = 1 << 7,
24 AlteredSearchPath = 1 << 8,
26 AsDatafileExclusive = 1 << 10,
27 AsImageResource = 1 << 11,
28 SearchApplicationDir = 1 << 12,
29 SearchDefaultDirs = 1 << 13,
30 SearchDllLoadDir = 1 << 14,
31 SearchSystem32 = 1 << 15,
32 SearchUserDirs = 1 << 16,
33 RequireSignedTarget = 1 << 17,
34 IgnoreAuthzLevel = 1 << 18,
35 SafeCurrentDirs = 1 << 19,
45 inline LoadFlag operator|(LoadFlag lhs, LoadFlag rhs) noexcept {
46 using underlying =
typename std::underlying_type<LoadFlag>::type;
47 return static_cast<LoadFlag
>(
48 static_cast<underlying
>(lhs) |
static_cast<underlying
>(rhs)
58 inline bool operator&(LoadFlag lhs, LoadFlag rhs) noexcept {
59 using underlying =
typename std::underlying_type<LoadFlag>::type;
60 return static_cast<underlying
>(lhs) &
static_cast<underlying
>(rhs);
69 inline LoadFlag& operator|=(LoadFlag& lhs, LoadFlag rhs) noexcept {