mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
implemented FlushViewOfFile in kernel32
svn path=/trunk/; revision=775
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: section.c,v 1.5 1999/10/07 23:44:28 ekohl Exp $
|
||||
/* $Id: section.c,v 1.6 1999/11/17 21:20:15 ariadne Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
@@ -284,4 +284,28 @@ OpenFileMappingW (
|
||||
return SectionHandle;
|
||||
}
|
||||
|
||||
WINBOOL
|
||||
STDCALL
|
||||
FlushViewOfFile(
|
||||
LPCVOID lpBaseAddress,
|
||||
DWORD dwNumberOfBytesToFlush
|
||||
)
|
||||
{
|
||||
|
||||
NTSTATUS Status;
|
||||
ULONG NumberOfBytesFlushed;
|
||||
|
||||
Status = NtFlushVirtualMemory(NtCurrentProcess(),
|
||||
lpBaseAddress, dwNumberOfBytesToFlush,
|
||||
&NumberOfBytesFlushed
|
||||
);
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastError(RtlNtStatusToDosError(Status));
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
||||
Reference in New Issue
Block a user