Skip to content

Commit e992af2

Browse files
Merge pull request #2006 from praveenr-ms/patch-1
Add clarification about usage of psuedo handles as source handle
2 parents 2958780 + f45aa81 commit e992af2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk-api-src/content/handleapi/nf-handleapi-duplicatehandle.md

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ The handle must have the PROCESS_DUP_HANDLE access right. For more information,
7272

7373
The handle to be duplicated. This is an open object handle that is valid in the context of the source process. For a list of objects whose handles can be duplicated, see the following Remarks section.
7474

75+
If <i>hSourceHandle</i> is a pseudo handle returned by <a href="/windows/desktop/api/processthreadsapi/nf-processthreadsapi-getcurrentprocess">GetCurrentProcess</a> or <a href="/windows/desktop/api/processthreadsapi/nf-processthreadsapi-getcurrentthread">GetCurrentThread</a>, <i>hSourceProcessHandle</i> should be a handle to the process calling <b>DuplicateHandle</b>.
76+
7577
### -param hTargetProcessHandle [in]
7678

7779
A handle to the process that is to receive the duplicated handle. The handle must have the PROCESS_DUP_HANDLE access right.

0 commit comments

Comments
 (0)