mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[NTOSKRNL_VISTA] Implement IoGetIrpExtraCreateParameter
CORE-15452
This commit is contained in:
parent
d6cfeaef51
commit
a76b8843a8
2 changed files with 28 additions and 0 deletions
|
@ -5,6 +5,7 @@ add_definitions(-DUNICODE -D_UNICODE -D__NTOSKRNL__ -D_NTOSKRNL_ -D_NTSYSTEM_)
|
|||
|
||||
list(APPEND SOURCE
|
||||
fsrtl.c
|
||||
io.c
|
||||
ke.c
|
||||
rtl.c)
|
||||
|
||||
|
|
27
sdk/lib/drivers/ntoskrnl_vista/io.c
Normal file
27
sdk/lib/drivers/ntoskrnl_vista/io.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* PROJECT: ReactOS Kernel - Vista+ APIs
|
||||
* LICENSE: GPL v2 - See COPYING in the top level directory
|
||||
* FILE: lib/drivers/ntoskrnl_vista/io.c
|
||||
* PURPOSE: Io functions of Vista+
|
||||
* PROGRAMMERS: Pierre Schweitzer <pierre@reactos.org>
|
||||
*/
|
||||
|
||||
#include <ntdef.h>
|
||||
#include <ntifs.h>
|
||||
|
||||
NTKERNELAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
IoGetIrpExtraCreateParameter(IN PIRP Irp,
|
||||
OUT PECP_LIST *ExtraCreateParameter)
|
||||
{
|
||||
/* Check we have a create operation */
|
||||
if (!BooleanFlagOn(Irp->Flags, IRP_CREATE_OPERATION))
|
||||
{
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
/* If so, return user buffer */
|
||||
*ExtraCreateParameter = Irp->UserBuffer;
|
||||
return STATUS_SUCCESS;
|
||||
}
|
Loading…
Reference in a new issue