WDK Mini Filter Example
ncdirenum.c File Reference
#include "nc.h"

Go to the source code of this file.

Functions

FLT_PREOP_CALLBACK_STATUS NcEnumerateDirectory (_Inout_ PFLT_CALLBACK_DATA Data, _In_ PCFLT_RELATED_OBJECTS FltObjects, _Flt_CompletionContext_Outptr_ PVOID *CompletionContext)
 
NTSTATUS NcEnumerateDirectorySetupInjection (_Inout_ PNC_DIR_QRY_CONTEXT DirQryCtx, _In_ PCFLT_RELATED_OBJECTS FltObjects, _In_ PNC_INSTANCE_CONTEXT InstanceContext, _In_ PDIRECTORY_CONTROL_OFFSETS Offsets, _In_ FILE_INFORMATION_CLASS InformationClass)
 
VOID NcEnumerateDirectoryReset (_Inout_ PNC_DIR_QRY_CONTEXT DirCtx)
 
BOOLEAN NcSkipName (_In_ PDIRECTORY_CONTROL_OFFSETS Offsets, _In_ PNC_DIR_QRY_CONTEXT Context, _In_ NC_PATH_OVERLAP RealOverlap, _In_ PNC_MAPPING Mapping, _In_ BOOLEAN IgnoreCase)
 
NTSTATUS NcPopulateCacheEntry (_In_ PFLT_INSTANCE Instance, _In_ PFILE_OBJECT FileObject, _In_ ULONG BufferLength, _In_ FILE_INFORMATION_CLASS FileInfoClass, _In_ PUNICODE_STRING SearchString, _In_ BOOLEAN RestartScan, _Out_ PNC_CACHE_ENTRY Cache)
 
PNC_CACHE_ENTRY NcDirEnumSelectNextEntry (_Inout_ PNC_DIR_QRY_CONTEXT Context, _In_ PDIRECTORY_CONTROL_OFFSETS Offsets, _In_ BOOLEAN IgnoreCase)
 
_Success_ Copied ULONG NcCopyDirEnumEntry (_Out_ PVOID UserBuffer, _In_ ULONG UserOffset, _In_ ULONG UserSize, _Inout_ PNC_CACHE_ENTRY Entry, _In_ PDIRECTORY_CONTROL_OFFSETS Offsets, _Out_ PBOOLEAN Copied)
 
NTSTATUS NcStreamHandleContextDirEnumCreate (_Out_ PNC_DIR_QRY_CONTEXT Context)
 
NTSTATUS NcStreamHandleContextEnumSetup (_Inout_ PNC_DIR_QRY_CONTEXT DirContext, _In_ PNC_INSTANCE_CONTEXT InstanceContext, _In_ PDIRECTORY_CONTROL_OFFSETS Offsets, _In_ PFLT_CALLBACK_DATA Data, _In_ PCFLT_RELATED_OBJECTS FltObjects, _In_ NC_PATH_OVERLAP UserMappingOverlap, _Out_ PBOOLEAN FirstUsage)
 
VOID NcStreamHandleContextEnumClose (_In_ PNC_DIR_QRY_CONTEXT DirContext)
 

Function Documentation

◆ NcCopyDirEnumEntry()

_Success_ Copied ULONG NcCopyDirEnumEntry ( _Out_ PVOID  UserBuffer,
_In_ ULONG  UserOffset,
_In_ ULONG  UserSize,
_Inout_ PNC_CACHE_ENTRY  Entry,
_In_ PDIRECTORY_CONTROL_OFFSETS  Offsets,
_Out_ PBOOLEAN  Copied 
)

Definition at line 1034 of file ncdirenum.c.

◆ NcDirEnumSelectNextEntry()

PNC_CACHE_ENTRY NcDirEnumSelectNextEntry ( _Inout_ PNC_DIR_QRY_CONTEXT  Context,
_In_ PDIRECTORY_CONTROL_OFFSETS  Offsets,
_In_ BOOLEAN  IgnoreCase 
)

Definition at line 920 of file ncdirenum.c.

◆ NcEnumerateDirectory()

FLT_PREOP_CALLBACK_STATUS NcEnumerateDirectory ( _Inout_ PFLT_CALLBACK_DATA  Data,
_In_ PCFLT_RELATED_OBJECTS  FltObjects,
_Flt_CompletionContext_Outptr_ PVOID *  CompletionContext 
)

Definition at line 39 of file ncdirenum.c.

◆ NcEnumerateDirectoryReset()

VOID NcEnumerateDirectoryReset ( _Inout_ PNC_DIR_QRY_CONTEXT  DirCtx)

Definition at line 682 of file ncdirenum.c.

◆ NcEnumerateDirectorySetupInjection()

NTSTATUS NcEnumerateDirectorySetupInjection ( _Inout_ PNC_DIR_QRY_CONTEXT  DirQryCtx,
_In_ PCFLT_RELATED_OBJECTS  FltObjects,
_In_ PNC_INSTANCE_CONTEXT  InstanceContext,
_In_ PDIRECTORY_CONTROL_OFFSETS  Offsets,
_In_ FILE_INFORMATION_CLASS  InformationClass 
)

Definition at line 463 of file ncdirenum.c.

◆ NcPopulateCacheEntry()

NTSTATUS NcPopulateCacheEntry ( _In_ PFLT_INSTANCE  Instance,
_In_ PFILE_OBJECT  FileObject,
_In_ ULONG  BufferLength,
_In_ FILE_INFORMATION_CLASS  FileInfoClass,
_In_ PUNICODE_STRING  SearchString,
_In_ BOOLEAN  RestartScan,
_Out_ PNC_CACHE_ENTRY  Cache 
)

Definition at line 809 of file ncdirenum.c.

◆ NcSkipName()

BOOLEAN NcSkipName ( _In_ PDIRECTORY_CONTROL_OFFSETS  Offsets,
_In_ PNC_DIR_QRY_CONTEXT  Context,
_In_ NC_PATH_OVERLAP  RealOverlap,
_In_ PNC_MAPPING  Mapping,
_In_ BOOLEAN  IgnoreCase 
)

Definition at line 714 of file ncdirenum.c.

◆ NcStreamHandleContextDirEnumCreate()

NTSTATUS NcStreamHandleContextDirEnumCreate ( _Out_ PNC_DIR_QRY_CONTEXT  Context)

Definition at line 1132 of file ncdirenum.c.

◆ NcStreamHandleContextEnumClose()

VOID NcStreamHandleContextEnumClose ( _In_ PNC_DIR_QRY_CONTEXT  DirContext)

Definition at line 1374 of file ncdirenum.c.

◆ NcStreamHandleContextEnumSetup()

NTSTATUS NcStreamHandleContextEnumSetup ( _Inout_ PNC_DIR_QRY_CONTEXT  DirContext,
_In_ PNC_INSTANCE_CONTEXT  InstanceContext,
_In_ PDIRECTORY_CONTROL_OFFSETS  Offsets,
_In_ PFLT_CALLBACK_DATA  Data,
_In_ PCFLT_RELATED_OBJECTS  FltObjects,
_In_ NC_PATH_OVERLAP  UserMappingOverlap,
_Out_ PBOOLEAN  FirstUsage 
)

Definition at line 1172 of file ncdirenum.c.

Social Network


Services Overview

Architect, implement and test file system filter drivers for a wide range of functionality. We can offer several levels of assistance to meet your specific.

Contact Us

You are welcome to contact us for salse or partnership.

Sales: sales@easefilter.com
Support: support@easefilter.com
Info: info@easefilter.com