GetNamedPipeClientComputerName function
Retrieves the client computer name for the specified named pipe.
Syntax
BOOL WINAPI GetNamedPipeClientComputerName( _In_ HANDLE Pipe, _Out_ LPTSTR ClientComputerName, _In_ ULONG ClientComputerNameLength );
Parameters
- Pipe [in]
-
A handle to an instance of a named pipe. This handle must be created by the CreateNamedPipe function.
- ClientComputerName [out]
-
The computer name.
- ClientComputerNameLength [in]
-
The size of the ClientComputerName buffer, in bytes.
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 |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names | GetNamedPipeClientComputerNameW (Unicode) and GetNamedPipeClientComputerNameA (ANSI) |
See also
Send comments about this topic to Microsoft
Build date: 5/24/2013