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

Function generated_query_function

windows/winobject/event_log.py:41–47  ·  view source on GitHub ↗
(handle, propertyid, flags=0)

Source from the content-addressed store, hash-verified

39
40def generate_query_function(query_function):
41 def generated_query_function(handle, propertyid, flags=0):
42 size = 0x10000
43 buffer = ctypes.create_string_buffer(size)
44 evt = ImprovedEVT_VARIANT.from_buffer(buffer)
45 res = gdef.DWORD()
46 query_function(handle, propertyid, flags, size, evt, res)
47 return evt
48 return generated_query_function
49
50chaninfo = generate_query_function(winproxy.EvtGetChannelConfigProperty)

Callers

nothing calls this directly

Calls 1

from_bufferMethod · 0.45

Tested by

no test coverage detected