blob: 66c6b931b96f6429e7113c30fa333005cb36687f [file] [log] [blame]
/****************************************************************************
****************************************************************************
***
*** This header was created from a ProcessHacker header to make
*** information necessary for userspace to call into the Windows
*** kernel available to Dr. Memory. It contains only constants,
*** structures, and macros generated from the original header, and
*** thus, contains no copyrightable information.
***
****************************************************************************
****************************************************************************/
/* from phlib/include/ntioapi.h */
#ifndef __PHLIB_NTIOAPI_H
#define __PHLIB_NTIOAPI_H
NTSTATUS NTAPI
NtDisableLastKnownGood(
VOID
);
NTSTATUS NTAPI
NtEnableLastKnownGood(
VOID
);
NTSTATUS NTAPI
NtCancelSynchronousIoFile(
__in HANDLE ThreadHandle,
__in_opt PIO_STATUS_BLOCK IoRequestToCancel,
__out PIO_STATUS_BLOCK IoStatusBlock
);
NTSTATUS NTAPI
NtSetIoCompletion(
__in HANDLE IoCompletionHandle,
__in ULONG CompletionKey,
__in_opt PVOID CompletionValue,
__in NTSTATUS IoStatus,
__in ULONG_PTR IoStatusInformation
);
NTSTATUS NTAPI
NtSetIoCompletionEx(
__in HANDLE IoCompletionHandle,
__in HANDLE IoCompletionReserveHandle,
__in ULONG CompletionKey,
__in_opt PVOID CompletionValue,
__in NTSTATUS IoStatus,
__in ULONG_PTR IoStatusInformation
);
NTSTATUS NTAPI
NtRemoveIoCompletionEx(
__in HANDLE IoCompletionHandle,
__out_ecount(Count) FILE_IO_COMPLETION_INFORMATION IoCompletionInformation,
__in ULONG Count,
__out PVOID NumEntriesRemoved,
__in_opt PLARGE_INTEGER Timeout,
__in BOOLEAN Alertable
);
/* The params for this syscall differ from Process Hacker
* and MSDN description. We put it here manually according to
* our own research and ntifs.h ver. Windows 8.1.
*/
NTSTATUS NTAPI
NtFlushBuffersFileEx(
_In_ HANDLE FileHandle,
_In_ ULONG Flags,
_In_reads_bytes_(ParametersSize) PVOID Parameters,
_In_ ULONG ParametersSize,
_Out_ PIO_STATUS_BLOCK IoStatusBlock
);
#endif /* __PHLIB_NTIOAPI_H */
/* EOF */