#ifndef _NTMMAPI_H
#if (PHNT_MODE != PHNT_MODE_KERNEL)
/**
* The NtFlushWriteBuffer routine flushes the write queue of the current processor that is running a thread of the current process.
*
* \return NTSTATUS Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtFlushWriteBuffer(
VOID
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwFlushWriteBuffer(
VOID
);
View code on GitHub
Function NtFlushWriteBuffer
does nothing...
It test IRQ Level, and call HAL export named KeFlushWriteBuffer
.
KeFlushWriteBuffer
as first asm code has ret, so it returns immediately.
Next NtFlushWriteBuffer
clear eax
(set result of call to STATUS_SUCCESS
) and returns to User-Mode.