Skip to content

Latest commit

 

History

History
99 lines (74 loc) · 2.89 KB

nf-winbase-getnamedpipeserverprocessid.md

File metadata and controls

99 lines (74 loc) · 2.89 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winbase.GetNamedPipeServerProcessId
GetNamedPipeServerProcessId function (winbase.h)
Retrieves the server process identifier for the specified named pipe.
GetNamedPipeServerProcessId
GetNamedPipeServerProcessId function
base.getnamedpipeserverprocessid
winbase/GetNamedPipeServerProcessId
base\getnamedpipeserverprocessid.htm
base
1ee33a66-a71c-4c34-b907-aab7860294c4
12/05/2018
GetNamedPipeServerProcessId, GetNamedPipeServerProcessId function, base.getnamedpipeserverprocessid, winbase/GetNamedPipeServerProcessId
winbase.h
Windows.h
Windows
Windows Vista [desktop apps \| UWP apps]
Windows Server 2008 [desktop apps \| UWP apps]
Kernel32.lib
Kernel32.dll
Windows
19H1
GetNamedPipeServerProcessId
winbase/GetNamedPipeServerProcessId
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-Kernel32-Legacy-l1-1-0.dll
kernel32legacy.dll
API-MS-Win-Core-Kernel32-Legacy-l1-1-1.dll
API-MS-Win-Core-Kernel32-Legacy-l1-1-2.dll
API-MS-Win-DownLevel-Kernel32-l2-1-0.dll
API-MS-Win-Core-Kernel32-Legacy-L1-1-3.dll
API-MS-Win-Core-Kernel32-Legacy-L1-1-4.dll
API-MS-Win-Core-Kernel32-Legacy-L1-1-5.dll
GetNamedPipeServerProcessId

GetNamedPipeServerProcessId function

-description

Retrieves the server process identifier for the specified named pipe.

-parameters

-param Pipe [in]

A handle to an instance of a named pipe. This handle must be created by the CreateNamedPipe function.

-param ServerProcessId [out]

The process identifier.

-returns

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call the GetLastError function.

-remarks

Windows 10, version 1709:  Pipes are only supported within an app-container; ie, from one UWP process to another UWP process that's part of the same app. Also, named pipes must use the syntax \\.\pipe\LOCAL\ for the pipe name.

-see-also

CreateNamedPipe

GetNamedPipeClientProcessId

Pipe Functions

Pipes Overview