KsDispatchQuerySecurity function

The KsDispatchQuerySecurity function is used in the KSDISPATCH_TABLE.QuerySecurity entry to handle querying about the current security descriptor. The assumption is that the KSOBJECT_HEADER structure is being used in the FsContext data structure and that the CreateItem points to a valid item that optionally contains a security descriptor.

Syntax

KSDDKAPI NTSTATUS KsDispatchQuerySecurity(
  PDEVICE_OBJECT DeviceObject,
  PIRP           Irp
);

Parameters

DeviceObject

Specifies the device object associated with the IRP.

Irp

Specifies the IRP that is being handled.

Return Value

The KsDispatchQuerySecurity function returns the security query status and completes the IRP if a security descriptor is present. If no security descriptor is present, it returns STATUS_NO_SECURITY_ON_OBJECT.

Requirements

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