std › fs › path › windows › kernel32 › DuplicateHandleDuplicateHandleFunction parametersParameters#hSourceProcessHandle:HANDLEhSourceHandle:HANDLEhTargetProcessHandle:HANDLElpTargetHandle:*HANDLEdwDesiredAccess:DWORDbInheritHandle:BOOLdwOptions:DWORDFunctions in this namespaceFunctions#ReadDirectoryChangesWCancelIoCancelIoExCreateFileWCreateNamedPipeWFindFirstFileWFindCloseGetFullPathNameWGetStdHandleMoveFileExWSetFilePointerExSetFileTimeWriteFileGetFileSizeExFlushFileBuffersSetFileCompletionNotificationModesGetCurrentDirectoryWGetFileAttributesWReadFileGetSystemDirectoryWCreateEventExWDuplicateHandleSetHandleInformationGetQueuedCompletionStatusGetQueuedCompletionStatusExPostQueuedCompletionStatusGetOverlappedResultCreateIoCompletionPortAddVectoredExceptionHandlerRemoveVectoredExceptionHandlerTerminateProcessWaitForSingleObjectWaitForSingleObjectExWaitForMultipleObjectsWaitForMultipleObjectsExCreateProcessWExitProcessSleepGetExitCodeProcessGetCurrentProcessSetEnvironmentVariableWCreateToolhelp32SnapshotGetCurrentThreadIdCreateThreadSwitchToThreadInitializeCriticalSectionEnterCriticalSectionLeaveCriticalSectionDeleteCriticalSectionTryAcquireSRWLockExclusiveAcquireSRWLockExclusiveReleaseSRWLockExclusiveInitOnceExecuteOnceWakeConditionVariableWakeAllConditionVariableSleepConditionVariableSRWGetConsoleModeSetConsoleModeGetConsoleScreenBufferInfoSetConsoleTextAttributeSetConsoleCtrlHandlerSetConsoleOutputCPGetConsoleOutputCPFillConsoleOutputAttributeFillConsoleOutputCharacterWSetConsoleCursorPositionWriteConsoleWReadConsoleOutputCharacterWHeapCreateHeapReAllocHeapAllocHeapFreeHeapValidateVirtualAllocVirtualFreeVirtualQueryGetProcessHeapGetModuleFileNameWGetModuleFileNameExWGetModuleHandleWModule32FirstModule32NextLoadLibraryWLoadLibraryExWGetProcAddressFreeLibraryFormatMessageWGetLastErrorSetLastErrorGetSystemInfoSourceImplementation#pub extern "kernel32" fn DuplicateHandle( hSourceProcessHandle: HANDLE, hSourceHandle: HANDLE, hTargetProcessHandle: HANDLE, lpTargetHandle: *HANDLE, dwDesiredAccess: DWORD, bInheritHandle: BOOL, dwOptions: DWORD, ) callconv(.winapi) BOOL
pub extern "kernel32" fn DuplicateHandle( hSourceProcessHandle: HANDLE, hSourceHandle: HANDLE, hTargetProcessHandle: HANDLE, lpTargetHandle: *HANDLE, dwDesiredAccess: DWORD, bInheritHandle: BOOL, dwOptions: DWORD, ) callconv(.winapi) BOOL