Method: OpenC3::Win32.heap_query_information

Defined in:
lib/openc3/win32/win32_main.rb

.heap_query_information(heap_handle, heap_information_type) ⇒ Object

Get Heap Information



318
319
320
321
322
323
324
# File 'lib/openc3/win32/win32_main.rb', line 318

def self.heap_query_information(heap_handle, heap_information_type)
  heap_info = ' ' * 8
  size      = ' ' * 8
  api = Win32API.new('Kernel32', 'HeapQueryInformation', ['i', 'i', 'P', 'i', 'P'], 'i')
  api.call(heap_handle, heap_information_type, heap_info, heap_info.length, size)
  heap_info.unpack("i")[0]
end