reactos/lib/kernel32/file
diff -u -r1.50 -r1.51
--- file.c 14 Mar 2004 13:11:55 -0000 1.50
+++ file.c 14 Mar 2004 13:20:10 -0000 1.51
@@ -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
@@ -447,6 +447,37 @@
/*
* @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
+ */
DWORD STDCALL
GetCompressedFileSizeA(LPCSTR lpFileName,
LPDWORD lpFileSizeHigh)
reactos/lib/kernel32/misc
diff -u -r1.65 -r1.66
--- stubs.c 14 Mar 2004 13:11:55 -0000 1.65
+++ stubs.c 14 Mar 2004 13:20:10 -0000 1.66
@@ -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.
@@ -878,20 +878,6 @@
/*
* @unimplemented
*/
-BOOL
-STDCALL
-GetFileSizeEx(
- HANDLE hFile,
- PLARGE_INTEGER lpFileSize
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-/*
- * @unimplemented
- */
VOID
STDCALL
GetNativeSystemInfo(