1 /* $Id: query.c,v 1.8 2003/12/30 18:52:05 fireball Exp $
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: ntoskrnl/lpc/query.c
6 * PURPOSE: Communication mechanism
7 * PROGRAMMER: David Welch (welch@cwcom.net)
12 /* INCLUDES *****************************************************************/
14 #include <ddk/ntddk.h>
15 #include <internal/ob.h>
16 #include <internal/port.h>
17 #include <internal/dbg.h>
20 #include <internal/debug.h>
22 /* FUNCTIONS *****************************************************************/
24 /**********************************************************************
26 * NtQueryInformationPort@20
32 * PortInformationClass [IN]
33 * PortInformation [OUT]
34 * PortInformationLength [IN]
38 * STATUS_SUCCESS if the call succedeed. An error code
42 * P. Dabak reports that this system service seems to return
45 /*EXPORTED*/ NTSTATUS STDCALL
46 NtQueryInformationPort (IN HANDLE PortHandle
,
47 IN CINT PortInformationClass
,
48 OUT PVOID PortInformation
,
49 IN ULONG PortInformationLength
,
50 OUT PULONG ReturnLength
)
55 Status
= ObReferenceObjectByHandle (PortHandle
,
56 PORT_ALL_ACCESS
, /* AccessRequired */
61 if (!NT_SUCCESS(Status
))
63 DPRINT("NtQueryInformationPort() = %x\n", Status
);
67 * FIXME: NT does nothing here!
69 ObDereferenceObject (Port
);
70 return STATUS_SUCCESS
;