DuplicateHandle method
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,
);
}