DuplicateHandle method

int DuplicateHandle(
  1. Pointer<Void> hSourceProcessHandle,
  2. Pointer<Void> hSourceHandle,
  3. Pointer<Void> hTargetProcessHandle,
  4. Pointer<Pointer<Void>> lpTargetHandle,
  5. int dwDesiredAccess,
  6. int bInheritHandle,
  7. int dwOptions,
)

Implementation

int DuplicateHandle(
  ffi.Pointer<ffi.Void> hSourceProcessHandle,
  ffi.Pointer<ffi.Void> hSourceHandle,
  ffi.Pointer<ffi.Void> hTargetProcessHandle,
  ffi.Pointer<ffi.Pointer<ffi.Void>> lpTargetHandle,
  int dwDesiredAccess,
  int bInheritHandle,
  int dwOptions,
) {
  return (_DuplicateHandle ??=
      _dylib.lookupFunction<_c_DuplicateHandle, _dart_DuplicateHandle>(
          'DuplicateHandle'))(
    hSourceProcessHandle,
    hSourceHandle,
    hTargetProcessHandle,
    lpTargetHandle,
    dwDesiredAccess,
    bInheritHandle,
    dwOptions,
  );
}