implemented GetFileSizeEx()

svn path=/trunk/; revision=8711
This commit is contained in:
Thomas Bluemel 2004-03-14 13:20:10 +00:00
parent 2c9bca4a1a
commit 841b0b2958
2 changed files with 33 additions and 16 deletions

View file

@ -1,4 +1,4 @@
/* $Id: file.c,v 1.50 2004/03/14 13:11:55 weiden Exp $
/* $Id: file.c,v 1.51 2004/03/14 13:20:10 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -444,6 +444,37 @@ GetFileSize(HANDLE hFile,
}
/*
* @implemented
*/
BOOL
STDCALL
GetFileSizeEx(
HANDLE hFile,
PLARGE_INTEGER lpFileSize
)
{
NTSTATUS errCode;
FILE_STANDARD_INFORMATION FileStandard;
IO_STATUS_BLOCK IoStatusBlock;
errCode = NtQueryInformationFile(hFile,
&IoStatusBlock,
&FileStandard,
sizeof(FILE_STANDARD_INFORMATION),
FileStandardInformation);
if (!NT_SUCCESS(errCode))
{
SetLastErrorByStatus(errCode);
return FALSE;
}
if (lpFileSize)
*lpFileSize = FileStandard.EndOfFile;
return TRUE;
}
/*
* @implemented
*/

View file

@ -1,4 +1,4 @@
/* $Id: stubs.c,v 1.65 2004/03/14 13:11:55 weiden Exp $
/* $Id: stubs.c,v 1.66 2004/03/14 13:20:10 weiden Exp $
*
* KERNEL32.DLL stubs (unimplemented functions)
* Remove from this file, if you implement them.
@ -875,20 +875,6 @@ GetDevicePowerState(
return 0;
}
/*
* @unimplemented
*/
BOOL
STDCALL
GetFileSizeEx(
HANDLE hFile,
PLARGE_INTEGER lpFileSize
)
{
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return 0;
}
/*
* @unimplemented
*/