Return the list of tuple (object's name, object) in the current directory object. :rtype: [(:class:`str`, :class:`KernelObject`)] -- A list of tuple .. note:: the :class:`KernelObject` must be of type ``Directory`` or it will raise :class:`~windows.generate
(self)
| 55 | return None |
| 56 | |
| 57 | def items(self): |
| 58 | """Return the list of tuple (object's name, object) in the current directory object. |
| 59 | |
| 60 | :rtype: [(:class:`str`, :class:`KernelObject`)] -- A list of tuple |
| 61 | |
| 62 | .. note:: |
| 63 | |
| 64 | the :class:`KernelObject` must be of type ``Directory`` or |
| 65 | it will raise :class:`~windows.generated_def.ntstatus.NtStatusException` with |
| 66 | code :data:`~windows.generated_def.STATUS_OBJECT_TYPE_MISMATCH` |
| 67 | """ |
| 68 | path = self.fullname |
| 69 | return [(name, KernelObject(path, name, typename)) for name, typename in self._directory_query_generator()] |
| 70 | |
| 71 | def keys(self): |
| 72 | """Return the list of objects' name in the current directory object. |
nothing calls this directly
no test coverage detected