(ql: Qiling, address: int, params, wstring: bool)
| 154 | return ERROR_SUCCESS |
| 155 | |
| 156 | def __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 | |
| 174 | def __RegDeleteKey(ql: Qiling, address: int, params): |
| 175 | hKey = params["hKey"] |
no test coverage detected