NtAlpcAcceptConnectPort - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTLPCAPI_H
// begin_private

/**
 * The NtAlpcAcceptConnectPort routine accepts or rejects an ALPC connection request.
 *
 * \param PortHandle Receives a handle to the server communication port.
 * \param ConnectionPortHandle Handle to the server connection port.
 * \param Flags Acceptance flags.
 * \param ObjectAttributes Specifies the object attributes for the server port.
 * \param PortAttributes Defines the operational characteristics of the server port.
 * \param PortContext Optional user-defined value associated with the port.
 * \param ConnectionRequest Details of the connection request.
 * \param ConnectionMessageAttributes Optional message attributes to send with the reply.
 * \param AcceptConnection TRUE to accept the connection, FALSE to reject it.
 * \return NTSTATUS Successful or errant status.
 */
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtAlpcAcceptConnectPort(
    _Out_ PHANDLE PortHandle,
    _In_ HANDLE ConnectionPortHandle,
    _In_ ALPC_PORT_FLAGS Flags,
    _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
    _In_opt_ PALPC_PORT_ATTRIBUTES PortAttributes,
    _In_opt_ PVOID PortContext,
    _In_reads_bytes_(ConnectionRequest->u1.s1.TotalLength) PPORT_MESSAGE ConnectionRequest,
    _Inout_opt_ PALPC_MESSAGE_ATTRIBUTES ConnectionMessageAttributes,
    _In_ BOOLEAN AcceptConnection
    );

// end_private
#endif

View code on GitHub
#ifndef _NTZWAPI_H

_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwAlpcAcceptConnectPort(
    _Out_ PHANDLE PortHandle,
    _In_ HANDLE ConnectionPortHandle,
    _In_ ULONG Flags,
    _In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
    _In_opt_ PALPC_PORT_ATTRIBUTES PortAttributes,
    _In_opt_ PVOID PortContext,
    _In_reads_bytes_(ConnectionRequest->u1.s1.TotalLength) PPORT_MESSAGE ConnectionRequest,
    _Inout_opt_ PALPC_MESSAGE_ATTRIBUTES ConnectionMessageAttributes,
    _In_ BOOLEAN AcceptConnection
    );

#endif

View code on GitHub

NtDoc

No description available.