FsRtlInitializeExtraCreateParameter function

The FsRtlInitializeExtraCreateParameter routine initializes an extra create parameter (ECP) context structure.

Syntax

NTKERNELAPI VOID FsRtlInitializeExtraCreateParameter(
  PECP_HEADER                                    Ecp,
  ULONG                                          EcpFlags,
  PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK CleanupCallback,
  ULONG                                          TotalSize,
  LPCGUID                                        EcpType,
  PVOID                                          ListAllocatedFrom
);

Parameters

Ecp

Pointer to the ECP context structure to initialize.

EcpFlags

Defines initialization options. Currently, no flags are defined.

CleanupCallback

Optional pointer to a filter-defined cleanup callback routine of type PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK. The cleanup callback routine is called when the ECP context structure (created by the FsRtlAllocateExtraCreateParameter routine) is deleted. Set this parameter to NULL if a cleanup callback routine is not applicable.

TotalSize

The size, in bytes, of the ECP context structure to initialize.

EcpType

Pointer to a GUID that indicates the type of ECP for which the context structure will be initialized. For more information about ECPs, see Using Extra Create Parameters with an IRP_MJ_CREATE Operation.

ListAllocatedFrom

Optional pointer to the list from which the ECP context structure is allocated.

Return Value

None

Requirements

   
Windows version The FsRtlInitializeExtraCreateParameter routine is available starting with Windows 7.
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL "<= APC_LEVEL"

See Also

FsRtlAllocateExtraCreateParameter

PFSRTL_EXTRA_CREATE_PARAMETER_CLEANUP_CALLBACK