From f45aa8129cb14704dd80402ce580fcb04c3505db Mon Sep 17 00:00:00 2001 From: Praveen Raveendranath <44376341+praveenr-ms@users.noreply.github.com> Date: Wed, 23 Apr 2025 12:51:59 -0700 Subject: [PATCH] Update nf-handleapi-duplicatehandle.md Added clarification that passing a psuedo handle in the hSourceHandle parameter is only valid if the source process is same as the caller --- sdk-api-src/content/handleapi/nf-handleapi-duplicatehandle.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk-api-src/content/handleapi/nf-handleapi-duplicatehandle.md b/sdk-api-src/content/handleapi/nf-handleapi-duplicatehandle.md index a743c76134c8..70fd544a7867 100644 --- a/sdk-api-src/content/handleapi/nf-handleapi-duplicatehandle.md +++ b/sdk-api-src/content/handleapi/nf-handleapi-duplicatehandle.md @@ -72,6 +72,8 @@ The handle must have the PROCESS_DUP_HANDLE access right. For more information, 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. +If hSourceHandle is a pseudo handle returned by GetCurrentProcess or GetCurrentThread, hSourceProcessHandle should be a handle to the process calling DuplicateHandle. + ### -param hTargetProcessHandle [in] A handle to the process that is to receive the duplicated handle. The handle must have the PROCESS_DUP_HANDLE access right.