mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:26:02 +00:00
implemented GetFileSizeEx()
svn path=/trunk/; revision=8711
This commit is contained in:
parent
2c9bca4a1a
commit
841b0b2958
2 changed files with 33 additions and 16 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* 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
|
* @implemented
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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)
|
* KERNEL32.DLL stubs (unimplemented functions)
|
||||||
* Remove from this file, if you implement them.
|
* Remove from this file, if you implement them.
|
||||||
|
@ -875,20 +875,6 @@ GetDevicePowerState(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* @unimplemented
|
|
||||||
*/
|
|
||||||
BOOL
|
|
||||||
STDCALL
|
|
||||||
GetFileSizeEx(
|
|
||||||
HANDLE hFile,
|
|
||||||
PLARGE_INTEGER lpFileSize
|
|
||||||
)
|
|
||||||
{
|
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @unimplemented
|
* @unimplemented
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue