4 modified files
reactos/include/ddk
diff -u -r1.14 -r1.15
--- fstypes.h 14 Mar 2004 09:21:41 -0000 1.14
+++ fstypes.h 18 Mar 2004 16:19:25 -0000 1.15
@@ -1,6 +1,6 @@
#ifndef __INCLUDE_DDK_FSTYPES_H
#define __INCLUDE_DDK_FSTYPES_H
-/* $Id: fstypes.h,v 1.14 2004/03/14 09:21:41 weiden Exp $ */
+/* $Id: fstypes.h,v 1.15 2004/03/18 16:19:25 weiden Exp $ */
#ifndef __USE_W32API
@@ -21,6 +21,10 @@
WCHAR FileName[1];
} FILE_LINK_INFORMATION, *PFILE_LINK_INFORMATION;
+typedef struct _FILE_VALID_DATA_LENGTH_INFORMATION {
+ LARGE_INTEGER ValidDataLength;
+} FILE_VALID_DATA_LENGTH_INFORMATION, *PFILE_VALID_DATA_LENGTH_INFORMATION;
+
typedef NTSTATUS (*PCOMPLETE_LOCK_IRP_ROUTINE) (
IN PVOID Context,
IN PIRP Irp
reactos/include/napi
diff -u -r1.8 -r1.9
--- types.h 21 Feb 2004 09:20:33 -0000 1.8
+++ types.h 18 Mar 2004 16:19:25 -0000 1.9
@@ -64,19 +64,19 @@
FileMailslotQueryInformation,
FileMailslotSetInformation,
FileCompressionInformation,
- FileCopyOnWriteInformation,
+ FileObjectIdInformation,
FileCompletionInformation,
FileMoveClusterInformation,
- FileOleClassIdInformation,
- FileOleStateBitsInformation,
+ FileQuotaInformation,
+ FileReparsePointInformation,
FileNetworkOpenInformation,
- FileObjectIdInformation,
- FileOleAllInformation,
- FileOleDirectoryInformation,
- FileContentIndexInformation,
- FileInheritContentIndexInformation,
- FileOleInformation,
- FileMaximumInformation,
+ FileAttributeTagInformation,
+ FileTrackingInformation,
+ FileIdBothDirectoryInformation,
+ FileIdFullDirectoryInformation,
+ FileValidDataLengthInformation,
+ FileShortNameInformation,
+ FileMaximumInformation
} FILE_INFORMATION_CLASS, *PFILE_INFORMATION_CLASS;
typedef enum _SECTION_INHERIT {
reactos/lib/kernel32/file
diff -u -r1.51 -r1.52
--- file.c 14 Mar 2004 13:20:10 -0000 1.51
+++ file.c 18 Mar 2004 16:19:25 -0000 1.52
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.51 2004/03/14 13:20:10 weiden Exp $
+/* $Id: file.c,v 1.52 2004/03/18 16:19:25 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@@ -13,6 +13,7 @@
/* INCLUDES *****************************************************************/
#include <k32.h>
+#include <ddk/ntifs.h>
#define NDEBUG
#include "../include/debug.h"
@@ -1158,4 +1159,37 @@
}
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+SetFileValidData(
+ HANDLE hFile,
+ LONGLONG ValidDataLength
+ )
+{
+ IO_STATUS_BLOCK IoStatusBlock;
+ FILE_VALID_DATA_LENGTH_INFORMATION ValidDataLengthInformation;
+ NTSTATUS Status;
+
+ ValidDataLengthInformation.ValidDataLength.QuadPart = ValidDataLength;
+
+ Status = NtSetInformationFile(
+ hFile,
+ &IoStatusBlock, //out
+ &ValidDataLengthInformation,
+ sizeof(FILE_VALID_DATA_LENGTH_INFORMATION),
+ FileValidDataLengthInformation
+ );
+
+ if (!NT_SUCCESS(Status)){
+ SetLastErrorByStatus(Status);
+ return FALSE;
+ }
+
+ return TRUE;
+}
+
/* EOF */
reactos/lib/kernel32/misc
diff -u -r1.68 -r1.69
--- stubs.c 14 Mar 2004 18:16:39 -0000 1.68
+++ stubs.c 18 Mar 2004 16:19:26 -0000 1.69
@@ -1,4 +1,4 @@
-/* $Id: stubs.c,v 1.68 2004/03/14 18:16:39 weiden Exp $
+/* $Id: stubs.c,v 1.69 2004/03/18 16:19:26 weiden Exp $
*
* KERNEL32.DLL stubs (unimplemented functions)
* Remove from this file, if you implement them.
@@ -1398,20 +1398,6 @@
*/
BOOL
STDCALL
-SetFileValidData(
- HANDLE hFile,
- LONGLONG ValidDataLength
- )
-{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
-}
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
SetInformationJobObject(
HANDLE hJob,
JOBOBJECTINFOCLASS JobObjectInformationClass,
CVSspam 0.2.8