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

Method _get_required_buffer_size

windows/alpc.py:243–250  ·  view source on GitHub ↗
(flags)

Source from the content-addressed store, hash-verified

241
242 @staticmethod
243 def _get_required_buffer_size(flags):
244 res = gdef.DWORD()
245 try:
246 windows.winproxy.AlpcInitializeMessageAttribute(flags, None, 0, res)
247 except windows.generated_def.ntstatus.NtStatusException as e:
248 # Buffer too small: osef
249 return res.value
250 return res.value
251
252 def is_allocated(self, attribute):
253 """Return ``True`` if ``attribute`` is allocated"""

Callers 1

with_attributesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected