Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetNamedPipeClientSessionId

GetNamedPipeClientSessionId function

Retrieves the client session identifier for the specified named pipe.

Syntax


BOOL WINAPI GetNamedPipeClientSessionId(
  _In_  HANDLE Pipe,
  _Out_ PULONG ClientSessionId
);

Parameters

Pipe [in]

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

ClientSessionId [out]

The session 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
GetNamedPipeServerSessionId
Pipe Functions
Pipes Overview

 

 

Community Additions

ADD
Show:
© 2015 Microsoft