mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
implemented FlushViewOfFile in kernel32
svn path=/trunk/; revision=775
This commit is contained in:
parent
6e605e712e
commit
614f99e406
1 changed files with 25 additions and 1 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -284,4 +284,28 @@ OpenFileMappingW (
|
||||||
return SectionHandle;
|
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 */
|
/* EOF */
|
||||||
|
|
Loading…
Reference in a new issue