| 174 | self.x = x |
| 175 | |
| 176 | def __getitem__(self, x): |
| 177 | if isinstance(x, basestring): |
| 178 | x = self.name_map[x] |
| 179 | # import pdb;pdb.set_trace() |
| 180 | argtype = self.parameters_type[x] |
| 181 | value = self.extractor.get_arg(x, self.x.current_process, self.x.current_thread) |
| 182 | rt = windows.remotectypes.transform_type_to_remote32bits(argtype) |
| 183 | if issubclass(rt, windows.remotectypes.RemoteValue): |
| 184 | t = rt(value, self.x.current_process) |
| 185 | else: |
| 186 | t = rt(value) |
| 187 | if not hasattr(t, "contents"): |
| 188 | try: |
| 189 | t = t.value |
| 190 | except AttributeError: |
| 191 | pass |
| 192 | return t |
| 193 | |
| 194 | def __setitem__(self, x, value): |
| 195 | if isinstance(x, basestring): |