GetNamedPipeClientProcessId function kernel32
Retrieves the client process identifier for the specified named pipe.
To learn more, see learn.microsoft.com/windows/win32/api/winbase/nf-winbase-getnamedpipeclientprocessid.
Implementation
Win32Result<bool> GetNamedPipeClientProcessId(
HANDLE pipe,
Pointer<Uint32> clientProcessId,
) {
resolveGetLastError();
final result_ = _GetNamedPipeClientProcessId(pipe, clientProcessId);
return .new(value: result_ != FALSE, error: GetLastError());
}