GetNamedPipeServerProcessId function (Windows)

Switch View :
ScriptFree
GetNamedPipeServerProcessId function

Applies to: desktop apps only

Retrieves the server process identifier for the specified named pipe.

Syntax

BOOL WINAPI GetNamedPipeServerProcessId(
  __in   HANDLE Pipe,
  __out  PULONG ServerProcessId
);

Parameters

Pipe [in]

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

ServerProcessId [out]

The process identifier.

Return value

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.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

CreateNamedPipe
GetNamedPipeClientProcessId
Pipe Functions
Pipes Overview

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012