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

Method values_for_entry

windows/winobject/apisetmap.py:113–123  ·  view source on GitHub ↗
(self, entry)

Source from the content-addressed store, hash-verified

111 get_entry_name = ApiSetMap.get_entry_name_basicimpl
112
113 def values_for_entry(self, entry):
114 values_array_v2 = (gdef.API_SET_VALUE_ARRAY_V2).from_address(self.base + entry.DataOffset)
115 array_size = values_array_v2.Count
116 array_addr = ctypes.addressof(values_array_v2.Array)
117 values_array = (gdef.API_SET_VALUE_ENTRY_V2 * array_size).from_address(array_addr)
118 res = []
119 for value in values_array:
120 if value.ValueLength:
121 v = self.read_apiset_wstring(value.ValueOffset, value.ValueLength)
122 res.append(v)
123 return res
124
125
126class ApiSetMapVersion4(ApiSetMap):

Callers

nothing calls this directly

Calls 1

read_apiset_wstringMethod · 0.80

Tested by

no test coverage detected