2 * PROJECT: ReactOS Drivers
3 * COPYRIGHT: See COPYING in the top level directory
4 * PURPOSE: Kernel Security Support Provider Interface Driver
6 * PROGRAMMERS: Timo Kreuzer (timo.kreuzer@reactos.org)
9 /* INCLUDES *******************************************************************/
17 /* FUNCTIONS ******************************************************************/
22 PDEVICE_OBJECT DeviceObject
,
25 PIO_STACK_LOCATION IoStackLocation
;
26 ULONG_PTR Information
;
29 IoStackLocation
= IoGetCurrentIrpStackLocation(Irp
);
31 switch (IoStackLocation
->MajorFunction
)
36 /* Just return success */
37 Status
= STATUS_SUCCESS
;
43 /* There is nothing to read */
44 Status
= STATUS_END_OF_FILE
;
50 /* Pretend to have written everything */
51 Status
= STATUS_SUCCESS
;
52 Information
= IoStackLocation
->Parameters
.Write
.Length
;
56 DPRINT1("Unhandled major function %lu!\n",
57 IoStackLocation
->MajorFunction
);
61 /* Return the information */
62 Irp
->IoStatus
.Status
= Status
;
63 Irp
->IoStatus
.Information
= Information
;
65 /* Complete the request */
66 IoCompleteRequest(Irp
, IO_NO_INCREMENT
);