IoInitializeDriverCreateContext function (ntddk.h)
The IoInitializeDriverCreateContext routine initializes a caller-allocated variable of type IO_DRIVER_CREATE_CONTEXT.
Syntax
void IoInitializeDriverCreateContext(
PIO_DRIVER_CREATE_CONTEXT DriverContext
);
Parameters
DriverContext
A pointer to a caller-allocated variable of type IO_DRIVER_CREATE_CONTEXT.
Return value
None
Remarks
The IoInitializeDriverCreateContext routine initializes a caller-allocated IO_DRIVER_CREATE_CONTEXT structure used in passing additional create parameters to the FltCreateFileEx2 and IoCreateFileEx routines.
Callers of IoInitializeDriverCreateContext can be running at any IRQL if the DriverContext block is in nonpaged pool. Otherwise, the caller must be running at IRQL <= APC_LEVEL.
Starting in Windows 10, version 1607, this routine sets the SiloContext member of IO_DRIVER_CREATE_CONTEXT to IO_USE_AMBIENT_SILO.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | ntddk.h (include Ntddk.h, Ntifs.h, Fltkernel.h) |
IRQL | See Remarks section. |