MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / SetProcessMitigationPolicy

Function SetProcessMitigationPolicy

windows/winproxy/apis/kernel32.py:104–109  ·  view source on GitHub ↗
(MitigationPolicy, lpBuffer, dwLength=None)

Source from the content-addressed store, hash-verified

102
103@Kernel32Proxy()
104def 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()
112def GetProcessDEPPolicy(hProcess, lpFlags, lpPermanent):

Callers

nothing calls this directly

Calls 1

sizeofMethod · 0.45

Tested by

no test coverage detected