KsCreateDefaultAllocator function (ks.h)

Given a validated IRP_MJ_CREATE request, the KsCreateDefaultAllocator function creates a default allocator that uses the specified memory pool and associates the IoGetCurrentIrpStackLocation(Irp)->FileObject with the allocator using an internal dispatch table (KSDISPATCH_TABLE).

Syntax

KSDDKAPI NTSTATUS KsCreateDefaultAllocator(
  [in] PIRP Irp
);

Parameters

[in] Irp

Specifies the IRP with the IRP_MJ_CREATE request being handled.

Return value

The KsCreateDefaultAllocator function returns STATUS_SUCCESS if successful, or it returns an error if unsuccessful.

Requirements

Requirement Value
Target Platform Universal
Header ks.h (include Ks.h)
Library Ks.lib