2006-05-10 17:47:44 +00:00
|
|
|
/*++ NDK Version: 0098
|
2005-11-22 04:57:45 +00:00
|
|
|
|
|
|
|
Copyright (c) Alex Ionescu. All rights reserved.
|
|
|
|
|
|
|
|
Header Name:
|
|
|
|
|
|
|
|
iofuncs.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
|
|
|
|
Function definitions for the I/O Manager.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
|
2006-05-10 17:47:44 +00:00
|
|
|
Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
|
2005-11-22 04:57:45 +00:00
|
|
|
|
|
|
|
--*/
|
2005-06-18 23:33:40 +00:00
|
|
|
|
|
|
|
#ifndef _IOFUNCS_H
|
|
|
|
#define _IOFUNCS_H
|
|
|
|
|
2005-11-22 04:57:45 +00:00
|
|
|
//
|
|
|
|
// Dependencies
|
|
|
|
//
|
2005-11-25 00:17:40 +00:00
|
|
|
#include <umtypes.h>
|
2005-12-06 01:09:09 +00:00
|
|
|
#include <iotypes.h>
|
2005-06-18 23:33:40 +00:00
|
|
|
|
2006-11-12 22:51:06 +00:00
|
|
|
//
|
|
|
|
// I/O Functions
|
|
|
|
//
|
|
|
|
#ifndef NTOS_MODE_USER
|
|
|
|
VOID
|
|
|
|
FASTCALL
|
|
|
|
IoAssignDriveLetters(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ struct _LOADER_PARAMETER_BLOCK *LoaderBlock,
|
|
|
|
_In_ PSTRING NtDeviceName,
|
|
|
|
_Out_ PUCHAR NtSystemPath,
|
|
|
|
_Out_ PSTRING NtSystemPathString
|
2006-11-12 22:51:06 +00:00
|
|
|
);
|
2008-08-22 19:00:31 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
IoSynchronousInvalidateDeviceRelations(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PDEVICE_OBJECT DeviceObject,
|
|
|
|
_In_ DEVICE_RELATION_TYPE Type
|
2008-08-22 19:00:31 +00:00
|
|
|
);
|
2010-03-31 20:54:22 +00:00
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
IoCreateDriver(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_opt_ PUNICODE_STRING DriverName,
|
|
|
|
_In_ PDRIVER_INITIALIZE InitializationFunction
|
2010-03-31 20:54:22 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
IoReportHalResourceUsage(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING HalName,
|
|
|
|
_In_ PCM_RESOURCE_LIST RawResourceList,
|
|
|
|
_In_ PCM_RESOURCE_LIST TranslatedResourceList,
|
|
|
|
_In_ ULONG ResourceListSize
|
2010-03-31 20:54:22 +00:00
|
|
|
);
|
2006-11-12 22:51:06 +00:00
|
|
|
#endif
|
|
|
|
|
2005-11-25 00:17:40 +00:00
|
|
|
//
|
|
|
|
// Native calls
|
|
|
|
//
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtAddBootEntry(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PBOOT_ENTRY BootEntry,
|
|
|
|
_In_ ULONG Id
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtAddDriverEntry(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PEFI_DRIVER_ENTRY BootEntry,
|
|
|
|
_In_ ULONG Id
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCancelIoFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE FileHandle,
|
|
|
|
_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
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE IoCompletionHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
2013-01-22 22:51:51 +00:00
|
|
|
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ ULONG NumberOfConcurrentThreads
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateMailslotFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE MailSlotFileHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG FileAttributes,
|
|
|
|
_In_ ULONG ShareAccess,
|
|
|
|
_In_ ULONG MaxMessageSize,
|
|
|
|
_In_ PLARGE_INTEGER TimeOut
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtCreateNamedPipeFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE NamedPipeFileHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG ShareAccess,
|
|
|
|
_In_ ULONG CreateDisposition,
|
|
|
|
_In_ ULONG CreateOptions,
|
|
|
|
_In_ ULONG WriteModeMessage,
|
|
|
|
_In_ ULONG ReadModeMessage,
|
|
|
|
_In_ ULONG NonBlocking,
|
|
|
|
_In_ ULONG MaxInstances,
|
|
|
|
_In_ ULONG InBufferSize,
|
|
|
|
_In_ ULONG OutBufferSize,
|
|
|
|
_In_ PLARGE_INTEGER DefaultTimeOut
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-10-23 21:19:15 +00:00
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDeleteDriverEntry(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ ULONG Id
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDeleteBootEntry(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ ULONG Id
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDeleteFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtDeviceIoControlFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG IoControlCode,
|
|
|
|
_In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer,
|
|
|
|
_In_ ULONG InputBufferLength,
|
|
|
|
_Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer,
|
|
|
|
_In_ ULONG OutputBufferLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtEnumerateBootEntries(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PVOID Buffer,
|
|
|
|
_In_ PULONG BufferLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtEnumerateDriverEntries(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PVOID Buffer,
|
|
|
|
_In_ PULONG BufferLength
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtFlushBuffersFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtFlushWriteBuffer(VOID);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtFsControlFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG FsControlCode,
|
|
|
|
_In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer,
|
|
|
|
_In_ ULONG InputBufferLength,
|
|
|
|
_Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer,
|
|
|
|
_In_ ULONG OutputBufferLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtLoadDriver(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING DriverServiceName
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtLockFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_ PLARGE_INTEGER Length,
|
|
|
|
_In_ ULONG Key,
|
|
|
|
_In_ BOOLEAN FailImmediatedly,
|
|
|
|
_In_ BOOLEAN ExclusiveLock
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtModifyBootEntry(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PBOOT_ENTRY BootEntry
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtModifyDriverEntry(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PEFI_DRIVER_ENTRY DriverEntry
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtNotifyChangeDirectoryFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_ PVOID Buffer,
|
|
|
|
_In_ ULONG BufferSize,
|
|
|
|
_In_ ULONG CompletionFilter,
|
|
|
|
_In_ BOOLEAN WatchTree
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE FileHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG ShareAccess,
|
|
|
|
_In_ ULONG OpenOptions
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtOpenIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE CompetionPort,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryAttributesFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PFILE_BASIC_INFORMATION FileInformation
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryDriverEntryOrder(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PULONG Ids,
|
|
|
|
_In_ PULONG Count
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryBootEntryOrder(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PULONG Ids,
|
|
|
|
_In_ PULONG Count
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryBootOptions(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PBOOT_OPTIONS BootOptions,
|
|
|
|
_In_ PULONG BootOptionsLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryDirectoryFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID FileInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FILE_INFORMATION_CLASS FileInformationClass,
|
|
|
|
_In_ BOOLEAN ReturnSingleEntry,
|
|
|
|
_In_opt_ PUNICODE_STRING FileName,
|
|
|
|
_In_ BOOLEAN RestartScan
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryEaFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_ PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ BOOLEAN ReturnSingleEntry,
|
|
|
|
_In_opt_ PVOID EaList,
|
|
|
|
_In_ ULONG EaListLength,
|
|
|
|
_In_opt_ PULONG EaIndex,
|
|
|
|
_In_ BOOLEAN RestartScan
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryFullAttributesFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PFILE_NETWORK_OPEN_INFORMATION FileInformation
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID FileInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FILE_INFORMATION_CLASS FileInformationClass
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE IoCompletionHandle,
|
|
|
|
_In_ IO_COMPLETION_INFORMATION_CLASS IoCompletionInformationClass,
|
|
|
|
_Out_ PVOID IoCompletionInformation,
|
|
|
|
_In_ ULONG IoCompletionInformationLength,
|
|
|
|
_Out_opt_ PULONG ResultLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryQuotaInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ BOOLEAN ReturnSingleEntry,
|
|
|
|
_In_reads_bytes_opt_(SidListLength) PVOID SidList,
|
|
|
|
_In_ ULONG SidListLength,
|
|
|
|
_In_reads_bytes_opt_((8 + (4 * ((SID *)StartSid)->SubAuthorityCount))) // SeLengthSid()
|
|
|
|
PSID StartSid,
|
|
|
|
_In_ BOOLEAN RestartScan
|
|
|
|
);
|
|
|
|
|
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtQueryVolumeInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID FsInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FS_INFORMATION_CLASS FsInformationClass
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtReadFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_opt_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_opt_ PULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtReadFileScatter(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE UserApcRoutine,
|
|
|
|
_In_opt_ PVOID UserApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK UserIoStatusBlock,
|
|
|
|
_In_ FILE_SEGMENT_ELEMENT BufferDescription[],
|
|
|
|
_In_ ULONG BufferLength,
|
|
|
|
_In_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_opt_ PULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtRemoveIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE IoCompletionHandle,
|
|
|
|
_Out_ PVOID *CompletionKey,
|
|
|
|
_Out_ PVOID *CompletionContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetBootEntryOrder(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PULONG Ids,
|
|
|
|
_In_ PULONG Count
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetBootOptions(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PBOOT_OPTIONS BootOptions,
|
|
|
|
_In_ ULONG FieldsToChange
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-10-23 21:19:15 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetDriverEntryOrder(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PULONG Ids,
|
|
|
|
_In_ PULONG Count
|
2006-10-23 21:19:15 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetEaFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_ PIO_STATUS_BLOCK IoStatusBlock,
|
2005-11-25 00:17:40 +00:00
|
|
|
PVOID EaBuffer,
|
|
|
|
ULONG EaBufferSize
|
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_reads_bytes_(Length) PVOID FileInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FILE_INFORMATION_CLASS FileInformationClass
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE IoCompletionPortHandle,
|
|
|
|
_In_ PVOID CompletionKey,
|
|
|
|
_In_ PVOID CompletionContext,
|
|
|
|
_In_ NTSTATUS CompletionStatus,
|
|
|
|
_In_ ULONG CompletionInformation
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetQuotaInformationFile(
|
|
|
|
HANDLE FileHandle,
|
|
|
|
PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
PVOID Buffer,
|
|
|
|
ULONG BufferLength
|
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtSetVolumeInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_reads_bytes_(Length) PVOID FsInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FS_INFORMATION_CLASS FsInformationClass
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtTranslateFilePath(
|
2006-05-10 17:47:44 +00:00
|
|
|
PFILE_PATH InputFilePath,
|
|
|
|
ULONG OutputType,
|
|
|
|
PFILE_PATH OutputFilePath,
|
|
|
|
ULONG OutputFilePathLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtUnloadDriver(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING DriverServiceName
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtUnlockFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_ PLARGE_INTEGER Length,
|
|
|
|
_In_ ULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
__kernel_entry
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSYSCALLAPI
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWriteFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_reads_bytes_(Length) PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_opt_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_opt_ PULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSCALLAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
NtWriteFileGather(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ FILE_SEGMENT_ELEMENT BufferDescription[],
|
|
|
|
_In_ ULONG BufferLength,
|
|
|
|
_In_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_opt_ PULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwAddBootEntry(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING EntryName,
|
|
|
|
_In_ PUNICODE_STRING EntryValue
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCancelIoFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE FileHandle,
|
|
|
|
_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
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE IoCompletionHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
2013-01-22 22:51:51 +00:00
|
|
|
_In_opt_ POBJECT_ATTRIBUTES ObjectAttributes,
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ ULONG NumberOfConcurrentThreads
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateMailslotFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE MailSlotFileHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG FileAttributes,
|
|
|
|
_In_ ULONG ShareAccess,
|
|
|
|
_In_ ULONG MaxMessageSize,
|
|
|
|
_In_ PLARGE_INTEGER TimeOut
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwCreateNamedPipeFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE NamedPipeFileHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG ShareAccess,
|
|
|
|
_In_ ULONG CreateDisposition,
|
|
|
|
_In_ ULONG CreateOptions,
|
|
|
|
_In_ ULONG WriteModeMessage,
|
|
|
|
_In_ ULONG ReadModeMessage,
|
|
|
|
_In_ ULONG NonBlocking,
|
|
|
|
_In_ ULONG MaxInstances,
|
|
|
|
_In_ ULONG InBufferSize,
|
|
|
|
_In_ ULONG OutBufferSize,
|
|
|
|
_In_ PLARGE_INTEGER DefaultTimeOut
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDeleteBootEntry(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING EntryName,
|
|
|
|
_In_ PUNICODE_STRING EntryValue
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-01-03 21:34:19 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDeleteFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwDeviceIoControlFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG IoControlCode,
|
|
|
|
_In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer,
|
|
|
|
_In_ ULONG InputBufferLength,
|
|
|
|
_Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer,
|
|
|
|
_In_ ULONG OutputBufferLength
|
|
|
|
);
|
|
|
|
|
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-01-03 21:34:19 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwFlushBuffersFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwFlushWriteBuffer(VOID);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwFsControlFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG FsControlCode,
|
|
|
|
_In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer,
|
|
|
|
_In_ ULONG InputBufferLength,
|
|
|
|
_Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer,
|
|
|
|
_In_ ULONG OutputBufferLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2005-11-28 21:40:21 +00:00
|
|
|
#ifdef NTOS_MODE_USER
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwLoadDriver(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING DriverServiceName
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
2005-11-28 21:40:21 +00:00
|
|
|
#endif
|
2005-11-25 00:17:40 +00:00
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwLockFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_ PLARGE_INTEGER Length,
|
|
|
|
_In_ ULONG Key,
|
|
|
|
_In_ BOOLEAN FailImmediatedly,
|
|
|
|
_In_ BOOLEAN ExclusiveLock
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwNotifyChangeDirectoryFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_ PVOID Buffer,
|
|
|
|
_In_ ULONG BufferSize,
|
|
|
|
_In_ ULONG CompletionFilter,
|
|
|
|
_In_ BOOLEAN WatchTree
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE FileHandle,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ ULONG ShareAccess,
|
|
|
|
_In_ ULONG OpenOptions
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwOpenIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_Out_ PHANDLE CompetionPort,
|
|
|
|
_In_ ACCESS_MASK DesiredAccess,
|
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryAttributesFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PFILE_BASIC_INFORMATION FileInformation
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryDirectoryFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID FileInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FILE_INFORMATION_CLASS FileInformationClass,
|
|
|
|
_In_ BOOLEAN ReturnSingleEntry,
|
|
|
|
_In_opt_ PUNICODE_STRING FileName,
|
|
|
|
_In_ BOOLEAN RestartScan
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-01-08 06:23:17 +00:00
|
|
|
#ifdef NTOS_MODE_USER
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryEaFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_ PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ BOOLEAN ReturnSingleEntry,
|
|
|
|
_In_opt_ PVOID EaList,
|
|
|
|
_In_ ULONG EaListLength,
|
|
|
|
_In_opt_ PULONG EaIndex,
|
|
|
|
_In_ BOOLEAN RestartScan
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
2006-01-08 06:23:17 +00:00
|
|
|
#endif
|
2005-11-25 00:17:40 +00:00
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryFullAttributesFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ POBJECT_ATTRIBUTES ObjectAttributes,
|
|
|
|
_Out_ PFILE_NETWORK_OPEN_INFORMATION FileInformation
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID FileInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FILE_INFORMATION_CLASS FileInformationClass
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE IoCompletionHandle,
|
|
|
|
_In_ IO_COMPLETION_INFORMATION_CLASS IoCompletionInformationClass,
|
|
|
|
_Out_ PVOID IoCompletionInformation,
|
|
|
|
_In_ ULONG IoCompletionInformationLength,
|
|
|
|
_Out_opt_ PULONG ResultLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryQuotaInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_ PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ BOOLEAN ReturnSingleEntry,
|
|
|
|
_In_opt_ PVOID SidList,
|
|
|
|
_In_ ULONG SidListLength,
|
|
|
|
_In_opt_ PSID StartSid,
|
|
|
|
_In_ BOOLEAN RestartScan
|
|
|
|
);
|
|
|
|
|
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwQueryVolumeInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID FsInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FS_INFORMATION_CLASS FsInformationClass
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwReadFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_Out_writes_bytes_(Length) PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_opt_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_opt_ PULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwReadFileScatter(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE UserApcRoutine,
|
|
|
|
_In_opt_ PVOID UserApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK UserIoStatusBlock,
|
|
|
|
_In_ FILE_SEGMENT_ELEMENT BufferDescription[],
|
|
|
|
_In_ ULONG BufferLength,
|
|
|
|
_In_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_opt_ PULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwRemoveIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE IoCompletionHandle,
|
|
|
|
_Out_ PVOID *CompletionKey,
|
|
|
|
_Out_ PVOID *CompletionContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_opt_ PLARGE_INTEGER Timeout
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-01-08 06:23:17 +00:00
|
|
|
#ifdef NTOS_MODE_USER
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetEaFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_ PIO_STATUS_BLOCK IoStatusBlock,
|
2005-11-25 00:17:40 +00:00
|
|
|
PVOID EaBuffer,
|
|
|
|
ULONG EaBufferSize
|
|
|
|
);
|
2006-01-08 06:23:17 +00:00
|
|
|
#endif
|
2005-11-25 00:17:40 +00:00
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_reads_bytes_(Length) PVOID FileInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FILE_INFORMATION_CLASS FileInformationClass
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetIoCompletion(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE IoCompletionPortHandle,
|
|
|
|
_In_ PVOID CompletionKey,
|
|
|
|
_In_ PVOID CompletionContext,
|
|
|
|
_In_ NTSTATUS CompletionStatus,
|
|
|
|
_In_ ULONG CompletionInformation
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetQuotaInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ PVOID Buffer,
|
|
|
|
_In_ ULONG BufferLength
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwSetVolumeInformationFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_reads_bytes_(Length) PVOID FsInformation,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_ FS_INFORMATION_CLASS FsInformationClass
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2005-11-28 21:40:21 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwUnloadDriver(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ PUNICODE_STRING DriverServiceName
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwUnlockFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ PLARGE_INTEGER ByteOffset,
|
2013-04-04 19:29:36 +00:00
|
|
|
_In_ PLARGE_INTEGER Length,
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_opt_ ULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2013-01-13 14:49:21 +00:00
|
|
|
_IRQL_requires_max_(PASSIVE_LEVEL)
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwWriteFile(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_reads_bytes_(Length) PVOID Buffer,
|
|
|
|
_In_ ULONG Length,
|
|
|
|
_In_opt_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_opt_ PULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
|
|
|
|
2006-03-04 17:27:40 +00:00
|
|
|
NTSYSAPI
|
2005-11-25 00:17:40 +00:00
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
ZwWriteFileGather(
|
2013-01-13 14:49:21 +00:00
|
|
|
_In_ HANDLE FileHandle,
|
|
|
|
_In_opt_ HANDLE Event,
|
|
|
|
_In_opt_ PIO_APC_ROUTINE ApcRoutine,
|
|
|
|
_In_opt_ PVOID ApcContext,
|
|
|
|
_Out_ PIO_STATUS_BLOCK IoStatusBlock,
|
|
|
|
_In_ FILE_SEGMENT_ELEMENT BufferDescription[],
|
|
|
|
_In_ ULONG BufferLength,
|
|
|
|
_In_ PLARGE_INTEGER ByteOffset,
|
|
|
|
_In_opt_ PULONG Key
|
2005-11-25 00:17:40 +00:00
|
|
|
);
|
2005-06-18 23:33:40 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2006-11-12 22:51:06 +00:00
|
|
|
|