Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

GetNamedPipeServerProcessId function

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 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

CreateNamedPipe
GetNamedPipeClientProcessId
Pipe Functions
Pipes Overview

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.