Method: Aggkit::ChildProcess::Windows::Lib.get_handle_inheritance

Defined in:
lib/aggkit/childprocess/windows/lib.rb

.get_handle_inheritance(handle) ⇒ Object



373
374
375
376
377
378
379
380
381
382
383
384
# File 'lib/aggkit/childprocess/windows/lib.rb', line 373

def get_handle_inheritance(handle)
  flags = FFI::MemoryPointer.new(:uint)

  status = get_handle_information(
    handle,
    flags
  )

  check_error status

  flags.read_uint
end