Method: Aggkit::ChildProcess::Windows::Lib.set_handle_inheritance

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

.set_handle_inheritance(handle, bool) ⇒ Object



363
364
365
366
367
368
369
370
371
# File 'lib/aggkit/childprocess/windows/lib.rb', line 363

def set_handle_inheritance(handle, bool)
  status = set_handle_information(
    handle,
    HANDLE_FLAG_INHERIT,
    bool ? HANDLE_FLAG_INHERIT : 0
  )

  check_error status
end