xref: /reactos/sdk/lib/drivers/ntoskrnl_vista/io.c (revision a6726659)
1 /*
2  * PROJECT:         ReactOS Kernel - Vista+ APIs
3  * LICENSE:         GPL v2 - See COPYING in the top level directory
4  * FILE:            lib/drivers/ntoskrnl_vista/io.c
5  * PURPOSE:         Io functions of Vista+
6  * PROGRAMMERS:     Pierre Schweitzer <pierre@reactos.org>
7  */
8 
9 #include <ntdef.h>
10 #include <ntifs.h>
11 
12 NTKERNELAPI
13 NTSTATUS
14 NTAPI
15 IoGetIrpExtraCreateParameter(IN PIRP Irp,
16                              OUT PECP_LIST *ExtraCreateParameter)
17 {
18     /* Check we have a create operation */
19     if (!BooleanFlagOn(Irp->Flags, IRP_CREATE_OPERATION))
20     {
21         return STATUS_INVALID_PARAMETER;
22     }
23 
24     /* If so, return user buffer */
25     *ExtraCreateParameter = Irp->UserBuffer;
26     return STATUS_SUCCESS;
27 }
28