MCPcopy Create free account
hub / github.com/qilingframework/qiling / __RegSetValueEx

Function __RegSetValueEx

qiling/os/windows/dlls/advapi32.py:156–172  ·  view source on GitHub ↗
(ql: Qiling, address: int, params, wstring: bool)

Source from the content-addressed store, hash-verified

154 return ERROR_SUCCESS
155
156def __RegSetValueEx(ql: Qiling, address: int, params, wstring: bool):
157 hKey = params["hKey"]
158 lpValueName = params["lpValueName"]
159 dwType = params["dwType"]
160 lpData = params["lpData"]
161 cbData = params["cbData"]
162
163 s_hKey = ql.os.handle_manager.get(hKey).obj
164 # this is done so the print_function would print the correct value
165 params["hKey"] = s_hKey
166
167 if not lpData:
168 return ERROR_INVALID_PARAMETER
169
170 ql.os.registry_manager.write(s_hKey, lpValueName, dwType, lpData, cbData, wstring)
171
172 return ERROR_SUCCESS
173
174def __RegDeleteKey(ql: Qiling, address: int, params):
175 hKey = params["hKey"]

Callers 2

hook_RegSetValueExAFunction · 0.85
hook_RegSetValueExWFunction · 0.85

Calls 2

getMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected