merge ROS Shell without integrated explorer part into trunk
[reactos.git] / reactos / drivers / net / tcpip / tcpip / irp.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS TCP/IP protocol driver
4 * FILE: tcpip/dispatch.h
5 * PURPOSE: TDI dispatch routines
6 * PROGRAMMERS: arty
7 * REVISIONS:
8 * CSH 01/08-2000 Created
9 * TODO: Validate device object in all dispatch routines
10 */
11
12 #include "precomp.h"
13
14 VOID IRPRemember( PIRP Irp, PCHAR File, UINT Line ) {
15 #ifdef MEMTRACK
16 TrackWithTag( IRP_TAG, Irp, File, Line );
17 #endif
18 }
19
20 NTSTATUS IRPFinish( PIRP Irp, NTSTATUS Status ) {
21 TI_DbgPrint(MID_TRACE,("Called: Irp %x, Status %x Event %x\n", Irp, Status, Irp->UserEvent));
22
23 #ifdef MEMTRACK
24 UntrackFL( __FILE__, __LINE__, Irp );
25 #endif
26
27 IoSetCancelRoutine( Irp, NULL );
28
29 if( Status == STATUS_PENDING )
30 IoMarkIrpPending( Irp );
31 else {
32 Irp->IoStatus.Status = Status;
33 IoCompleteRequest( Irp, IO_NETWORK_INCREMENT );
34 }
35
36 return Status;
37 }
38