Moved kernel32.FlushFileBuffers to ntdll.NtFlushBuffersFile.

This commit is contained in:
Eric Pouech 2003-04-22 04:04:17 +00:00 committed by Alexandre Julliard
parent a03e66dc39
commit b6338878a8
4 changed files with 28 additions and 9 deletions

View File

@ -491,3 +491,18 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile (
IoStatusBlock->Information = len;
return STATUS_SUCCESS;
}
/******************************************************************
* NtFlushBuffersFile (NTDLL.@)
*/
NTSTATUS WINAPI NtFlushBuffersFile( HANDLE hFile, IO_STATUS_BLOCK* IoStatusBlock )
{
NTSTATUS ret;
SERVER_START_REQ( flush_file )
{
req->handle = hFile;
ret = wine_server_call( req );
}
SERVER_END_REQ;
return ret;
}

View File

@ -107,7 +107,7 @@
@ stdcall NtEnumerateKey (long long long long long long)
@ stdcall NtEnumerateValueKey (long long long long long long)
@ stub NtExtendSection
@ stub NtFlushBuffersFile
@ stdcall NtFlushBuffersFile(long ptr)
@ stub NtFlushInstructionCache
@ stdcall NtFlushKey(long)
@ stdcall NtFlushVirtualMemory(long ptr ptr long)
@ -441,7 +441,7 @@
@ stdcall RtlInt64ToUnicodeString(long long long ptr)
@ stdcall RtlIntegerToChar(long long long ptr)
@ stdcall RtlIntegerToUnicodeString(long long ptr)
@ stdcall RtlIsDosDeviceName_U(wstr) RtlIsDosDeviceName_U
@ stdcall RtlIsDosDeviceName_U(wstr)
@ stub RtlIsGenericTableEmpty
@ stdcall RtlIsNameLegalDOS8Dot3(ptr ptr ptr)
@ stdcall RtlIsTextUnicode(ptr long ptr)
@ -634,7 +634,7 @@
@ stdcall ZwEnumerateKey(long long long ptr long ptr) NtEnumerateKey
@ stdcall ZwEnumerateValueKey(long long long ptr long ptr) NtEnumerateValueKey
@ stub ZwExtendSection
@ stub ZwFlushBuffersFile
@ stdcall ZwFlushBuffersFile(long ptr) NtFlushBuffersFile
@ stub ZwFlushInstructionCache
@ stdcall ZwFlushKey(long) NtFlushKey
@ stdcall ZwFlushVirtualMemory(long ptr ptr long) NtFlushVirtualMemory

View File

@ -2361,14 +2361,17 @@ UINT WINAPI SetHandleCount( UINT count )
*/
BOOL WINAPI FlushFileBuffers( HANDLE hFile )
{
BOOL ret;
SERVER_START_REQ( flush_file )
NTSTATUS nts;
IO_STATUS_BLOCK ioblk;
nts = NtFlushBuffersFile( hFile, &ioblk );
if (nts != STATUS_SUCCESS)
{
req->handle = hFile;
ret = !wine_server_call_err( req );
SetLastError( RtlNtStatusToDosError( nts ) );
return FALSE;
}
SERVER_END_REQ;
return ret;
return TRUE;
}

View File

@ -850,6 +850,7 @@ NTSTATUS WINAPI NtDeviceIoControlFile(HANDLE,HANDLE,PIO_APC_ROUTINE,PVOID,PIO_S
NTSTATUS WINAPI NtDuplicateObject(HANDLE,HANDLE,HANDLE,PHANDLE,ACCESS_MASK,ULONG,ULONG);
NTSTATUS WINAPI NtEnumerateKey(HKEY,ULONG,KEY_INFORMATION_CLASS,void *,DWORD,DWORD *);
NTSTATUS WINAPI NtEnumerateValueKey(HKEY,ULONG,KEY_VALUE_INFORMATION_CLASS,PVOID,ULONG,PULONG);
NTSTATUS WINAPI NtFlushBuffersFile(HANDLE,IO_STATUS_BLOCK*);
NTSTATUS WINAPI NtFlushKey(HKEY);
NTSTATUS WINAPI NtFlushVirtualMemory(HANDLE,LPCVOID*,ULONG*,ULONG);
NTSTATUS WINAPI NtFreeVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG);