(MitigationPolicy, lpBuffer, dwLength=None)
| 102 | |
| 103 | @Kernel32Proxy() |
| 104 | def SetProcessMitigationPolicy(MitigationPolicy, lpBuffer, dwLength=None): |
| 105 | if dwLength is None: |
| 106 | dwLength = ctypes.sizeof(lpBuffer) |
| 107 | if isinstance(lpBuffer, PROCESS_MITIGATION_STUCTS): |
| 108 | lpBuffer = ctypes.byref(lpBuffer) |
| 109 | return SetProcessMitigationPolicy.ctypes_function(MitigationPolicy, lpBuffer, dwLength) |
| 110 | |
| 111 | @Kernel32Proxy() |
| 112 | def GetProcessDEPPolicy(hProcess, lpFlags, lpPermanent): |