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

Go to the source code of this file.

Functions

NTSTATUS NcReplaceFileObjectNameAlternate (_In_ PFILE_OBJECT FileObject, _In_reads_bytes_(FileNameLength) PWSTR NewFileName, _In_ USHORT FileNameLength)
 
NTSTATUS NcQueryDirectoryFileAlternate (_In_ PFLT_INSTANCE Instance, _In_ PFILE_OBJECT FileObject, _In_reads_bytes_(Length) PVOID FileInformation, _In_ ULONG Length, _In_ FILE_INFORMATION_CLASS FileInformationClass, _In_ BOOLEAN ReturnSingleEntry, _In_opt_ PUNICODE_STRING FileName, _In_ BOOLEAN RestartScan, _Out_opt_ PULONG LengthReturned)
 
NTSTATUS FLTAPI NcCreateFileEx2Alternate (_In_ PFLT_FILTER Filter, _In_opt_ PFLT_INSTANCE Instance, _Out_ PHANDLE FileHandle, _Outptr_opt_ PFILE_OBJECT *FileObject, _In_ ACCESS_MASK DesiredAccess, _In_ POBJECT_ATTRIBUTES ObjectAttributes, _Out_ PIO_STATUS_BLOCK IoStatusBlock, _In_opt_ PLARGE_INTEGER AllocationSize, _In_ ULONG FileAttributes, _In_ ULONG ShareAccess, _In_ ULONG CreateDisposition, _In_ ULONG CreateOptions, _In_reads_bytes_opt_(EaLength) PVOID EaBuffer, _In_ ULONG EaLength, _In_ ULONG Flags, _In_opt_ PIO_DRIVER_CREATE_CONTEXT DriverContext)
 
VOID NcCompatInit ()
 

Variables

NC_REPLACE_FILEOBJECT_NAME_TYPE NcReplaceFileObjectName
 
NC_QUERY_DIRECTORY_FILE_TYPE NcQueryDirectoryFile
 
NC_CREATE_FILE_EX2_TYPE NcCreateFileEx2
 
NC_GET_NEW_SYSTEM_BUFFER_ADDRESS NcGetNewSystemBufferAddress
 
NC_CREATE_FILE_EX_TYPE NcCreateFileEx
 

Function Documentation

◆ NcCompatInit()

VOID NcCompatInit ( )

Definition at line 414 of file nccompat.c.

◆ NcCreateFileEx2Alternate()

NTSTATUS FLTAPI NcCreateFileEx2Alternate ( _In_ PFLT_FILTER  Filter,
_In_opt_ PFLT_INSTANCE  Instance,
_Out_ PHANDLE  FileHandle,
_Outptr_opt_ PFILE_OBJECT *  FileObject,
_In_ ACCESS_MASK  DesiredAccess,
_In_ POBJECT_ATTRIBUTES  ObjectAttributes,
_Out_ PIO_STATUS_BLOCK  IoStatusBlock,
_In_opt_ PLARGE_INTEGER  AllocationSize,
_In_ ULONG  FileAttributes,
_In_ ULONG  ShareAccess,
_In_ ULONG  CreateDisposition,
_In_ ULONG  CreateOptions,
_In_reads_bytes_opt_(EaLength) PVOID  EaBuffer,
_In_ ULONG  EaLength,
_In_ ULONG  Flags,
_In_opt_ PIO_DRIVER_CREATE_CONTEXT  DriverContext 
)

Definition at line 275 of file nccompat.c.

◆ NcQueryDirectoryFileAlternate()

NTSTATUS NcQueryDirectoryFileAlternate ( _In_ PFLT_INSTANCE  Instance,
_In_ PFILE_OBJECT  FileObject,
_In_reads_bytes_(Length) PVOID  FileInformation,
_In_ ULONG  Length,
_In_ FILE_INFORMATION_CLASS  FileInformationClass,
_In_ BOOLEAN  ReturnSingleEntry,
_In_opt_ PUNICODE_STRING  FileName,
_In_ BOOLEAN  RestartScan,
_Out_opt_ PULONG  LengthReturned 
)

Definition at line 174 of file nccompat.c.

◆ NcReplaceFileObjectNameAlternate()

NTSTATUS NcReplaceFileObjectNameAlternate ( _In_ PFILE_OBJECT  FileObject,
_In_reads_bytes_(FileNameLength) PWSTR  NewFileName,
_In_ USHORT  FileNameLength 
)

Definition at line 94 of file nccompat.c.

Variable Documentation

◆ NcCreateFileEx

NC_CREATE_FILE_EX_TYPE NcCreateFileEx

Definition at line 87 of file nccompat.c.

◆ NcCreateFileEx2

NC_CREATE_FILE_EX2_TYPE NcCreateFileEx2

Definition at line 80 of file nccompat.c.

◆ NcGetNewSystemBufferAddress

NC_GET_NEW_SYSTEM_BUFFER_ADDRESS NcGetNewSystemBufferAddress

Definition at line 81 of file nccompat.c.

◆ NcQueryDirectoryFile

NC_QUERY_DIRECTORY_FILE_TYPE NcQueryDirectoryFile

Definition at line 79 of file nccompat.c.

◆ NcReplaceFileObjectName

NC_REPLACE_FILEOBJECT_NAME_TYPE NcReplaceFileObjectName

Definition at line 78 of file nccompat.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