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

Method keys

windows/winobject/object_manager.py:71–82  ·  view source on GitHub ↗

Return the list of objects' name in the current directory object. :rtype: [:class:`str`] -- A list of name .. note:: the :class:`KernelObject` must be of type ``Directory`` or it will raise :class:`~windows.generated_def.ntstatus.NtStatusException` with

(self)

Source from the content-addressed store, hash-verified

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.
73
74 :rtype: [:class:`str`] -- A list of name
75
76 .. note::
77
78 the :class:`KernelObject` must be of type ``Directory`` or
79 it will raise :class:`~windows.generated_def.ntstatus.NtStatusException` with
80 code :data:`~windows.generated_def.STATUS_OBJECT_TYPE_MISMATCH`
81 """
82 return list(self)
83
84 def values(self):
85 """Return the list of objects in the current directory object.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected