56 PLONG lpDistanceToMoveHigh,
65 TRACE(
"SetFilePointer(hFile %p, lDistanceToMove %d, dwMoveMethod %lu)\n",
66 hFile,lDistanceToMove,dwMoveMethod);
74 if (lpDistanceToMoveHigh)
76 Distance.
u.HighPart = *lpDistanceToMoveHigh;
77 Distance.
u.LowPart = lDistanceToMove;
95 if (lpDistanceToMoveHigh !=
NULL)
96 *lpDistanceToMoveHigh = -1;
111 if (lpDistanceToMoveHigh !=
NULL)
112 *lpDistanceToMoveHigh = -1;
146 if (lpDistanceToMoveHigh !=
NULL)
147 *lpDistanceToMoveHigh = -1;
153 if (lpDistanceToMoveHigh !=
NULL)
193 switch (dwMoveMethod)
256 if (lpNewFilePointer !=
NULL)
346 if ( lpFileSizeHigh ==
NULL )
355 if ( lpFileSizeHigh !=
NULL )
356 *lpFileSizeHigh = FileStandard.
EndOfFile.
u.HighPart;
519 sizeof(FileFsVolume),
596 WARN (
"NtQueryFullAttributesFile() failed (Status %lx)\n",
Status);
814 PathUBuffer = NtPathU.
Buffer;
928 if (lpLastAccessTime)
971 if (lpLastAccessTime)
1061 &FileAllocationInfo,
1095 &ValidDataLengthInformation,
#define DECLSPEC_HOTPATCH
#define DEBUG_CHANNEL(args)
BOOL WINAPI FlushConsoleInputBuffer(IN HANDLE hConsoleInput)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define STATUS_INVALID_HANDLE
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define INVALID_SET_FILE_POINTER
#define INVALID_HANDLE_VALUE
#define ERROR_INVALID_HANDLE
#define FILE_ATTRIBUTE_NORMAL
BOOL WINAPI DECLSPEC_HOTPATCH VerifyConsoleIoHandle(HANDLE hIoHandle)
BOOL WINAPI SetFileValidData(HANDLE hFile, LONGLONG ValidDataLength)
BOOL WINAPI GetFileInformationByHandle(HANDLE hFile, LPBY_HANDLE_FILE_INFORMATION lpFileInformation)
DWORD WINAPI GetFileAttributesW(LPCWSTR lpFileName)
BOOL WINAPI SetFileAttributesW(LPCWSTR lpFileName, DWORD dwFileAttributes)
DWORD WINAPI GetCompressedFileSizeW(LPCWSTR lpFileName, LPDWORD lpFileSizeHigh)
BOOL WINAPI SetFileAttributesA(LPCSTR lpFileName, DWORD dwFileAttributes)
DWORD WINAPI GetFileType(HANDLE hFile)
BOOL WINAPI FlushFileBuffers(IN HANDLE hFile)
BOOL WINAPI GetFileAttributesExA(LPCSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
BOOL WINAPI SetFileAttributesByHandle(IN HANDLE hFile, IN DWORD dwFileAttributes, IN DWORD dwFlags)
BOOL WINAPI GetFileAttributesByHandle(IN HANDLE hFile, OUT LPDWORD dwFileAttributes, IN DWORD dwFlags)
BOOL WINAPI SetEndOfFile(HANDLE hFile)
BOOL WINAPI GetFileAttributesExW(LPCWSTR lpFileName, GET_FILEEX_INFO_LEVELS fInfoLevelId, LPVOID lpFileInformation)
BOOL WINAPI SetFileTime(IN HANDLE hFile, CONST FILETIME *lpCreationTime OPTIONAL, CONST FILETIME *lpLastAccessTime OPTIONAL, CONST FILETIME *lpLastWriteTime OPTIONAL)
DWORD WINAPI GetCompressedFileSizeA(LPCSTR lpFileName, LPDWORD lpFileSizeHigh)
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
BOOL WINAPI GetFileTime(IN HANDLE hFile, OUT LPFILETIME lpCreationTime OPTIONAL, OUT LPFILETIME lpLastAccessTime OPTIONAL, OUT LPFILETIME lpLastWriteTime OPTIONAL)
BOOL WINAPI SetFilePointerEx(HANDLE hFile, LARGE_INTEGER liDistanceToMove, PLARGE_INTEGER lpNewFilePointer, DWORD dwMoveMethod)
DWORD WINAPI GetFileAttributesA(LPCSTR lpFileName)
PWCHAR FilenameA2W(LPCSTR NameA, BOOL alloc)
HANDLE TranslateStdHandle(IN HANDLE hHandle)
struct _FileName FileName
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
@ FilePositionInformation
@ FileEndOfFileInformation
@ FileCompressionInformation
@ FileInternalInformation
@ FileValidDataLengthInformation
@ FileAllocationInformation
#define FILE_OPEN_REPARSE_POINT
#define FILE_SYNCHRONOUS_IO_NONALERT
@ FileFsDeviceInformation
@ FileFsVolumeInformation
#define FILE_OPEN_FOR_BACKUP_INTENT
#define OBJ_CASE_INSENSITIVE
NTSTATUS NTAPI NtFlushBuffersFile(IN HANDLE FileHandle, OUT PIO_STATUS_BLOCK IoStatusBlock)
#define FILE_DEVICE_SERIAL_PORT
static OUT PIO_STATUS_BLOCK IoStatusBlock
static OUT PIO_STATUS_BLOCK OUT PVOID FileInformation
#define InitializeObjectAttributes(p, n, a, r, s)
NTSYSAPI ULONG NTAPI RtlIsDosDeviceName_U(_In_ PCWSTR Name)
VOID NTAPI RtlReleaseRelativeName(_In_ PRTL_RELATIVE_NAME_U RelativeName)
NTSYSAPI BOOLEAN NTAPI RtlDosPathNameToRelativeNtPathName_U(_In_ PCWSTR DosName, _Out_ PUNICODE_STRING NtName, _Out_ PCWSTR *PartName, _Out_ PRTL_RELATIVE_NAME_U RelativeName)
NTSYSAPI BOOLEAN NTAPI RtlDosPathNameToNtPathName_U(_In_opt_z_ PCWSTR DosPathName, _Out_ PUNICODE_STRING NtPathName, _Out_opt_ PCWSTR *NtFileNamePart, _Out_opt_ PRTL_RELATIVE_NAME_U DirectoryInfo)
NTSYSAPI NTSTATUS NTAPI NtOpenFile(OUT PHANDLE phFile, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN ULONG ShareMode, IN ULONG OpenMode)
#define FILE_ATTRIBUTE_VALID_SET_FLAGS
NTSYSAPI NTSTATUS NTAPI NtSetInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, IN PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
NTSYSAPI NTSTATUS NTAPI NtQueryInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, OUT PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
#define FILE_SHARE_DELETE
#define FILE_WRITE_ATTRIBUTES
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
#define FILE_ATTRIBUTE_ARCHIVE
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
#define UNREFERENCED_PARAMETER(P)
NTSTATUS NTAPI NtQueryAttributesFile(IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PFILE_BASIC_INFORMATION FileInformation)
NTSTATUS NTAPI NtQueryFullAttributesFile(IN POBJECT_ATTRIBUTES ObjectAttributes, OUT PFILE_NETWORK_OPEN_INFORMATION FileInformation)
#define FileStandardInformation
#define FILE_DEVICE_DISK_FILE_SYSTEM
#define FILE_DEVICE_NAMED_PIPE
#define FILE_DEVICE_MOUSE
#define FILE_DEVICE_CD_ROM
#define FILE_DEVICE_SCREEN
#define FILE_DEVICE_KEYBOARD
#define FILE_DEVICE_DATALINK
#define FILE_DEVICE_CD_ROM_FILE_SYSTEM
#define FILE_DEVICE_MODEM
#define FILE_DEVICE_PARALLEL_PORT
#define FILE_DEVICE_CONTROLLER
#define FILE_DEVICE_SOUND
#define FILE_DEVICE_PRINTER
#define FILE_DEVICE_VIRTUAL_DISK
DWORD BaseSetLastNTError(IN NTSTATUS Status)
#define IsConsoleHandle(h)
NTSTATUS NTAPI NtQueryVolumeInformationFile(HANDLE FileHandle, PIO_STATUS_BLOCK IoStatusBlock, PVOID FsInformation, ULONG Length, FS_INFORMATION_CLASS FsInformationClass)
PULONG MinorVersion OPTIONAL
UNICODE_STRING RelativeName
HANDLE ContainingDirectory
FILETIME ftLastAccessTime
#define STATUS_INVALID_PARAMETER
struct _LARGE_INTEGER::@2299 u
#define INVALID_FILE_ATTRIBUTES
#define FILE_TYPE_UNKNOWN
#define INVALID_FILE_SIZE
enum _GET_FILEEX_INFO_LEVELS GET_FILEEX_INFO_LEVELS
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
#define ERROR_PATH_NOT_FOUND
#define ERROR_NEGATIVE_SEEK
#define ERROR_BAD_PATHNAME