Method: ChildProcess::Windows::Lib.set_handle_inheritance

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

.set_handle_inheritance(handle, bool) ⇒ Object



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

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

  check_error status
end