ReactOS 0.4.15-dev-5666-gc548b97
GetFileInformationByHandleEx.c
Go to the documentation of this file.
1
2#include "k32_vista.h"
3
4#include <ndk/rtlfuncs.h>
5#include <ndk/iofuncs.h>
6
7/* Taken from Wine kernel32/file.c */
8
9/***********************************************************************
10* GetFileInformationByHandleEx (KERNEL32.@)
11*/
14{
17
18 switch (class)
19 {
20 case FileStreamInfo:
21 case FileCompressionInfo:
22 case FileAttributeTagInfo:
23 case FileRemoteProtocolInfo:
24 case FileFullDirectoryInfo:
25 case FileFullDirectoryRestartInfo:
26 case FileStorageInfo:
27 case FileAlignmentInfo:
28 case FileIdInfo:
29 case FileIdExtdDirectoryInfo:
30 case FileIdExtdDirectoryRestartInfo:
31 //FIXME( "%p, %u, %p, %u\n", handle, class, info, size );
33 return FALSE;
34
35 case FileBasicInfo:
37 break;
38
39 case FileStandardInfo:
41 break;
42
43 case FileNameInfo:
45 break;
46
47 case FileIdBothDirectoryRestartInfo:
48 case FileIdBothDirectoryInfo:
51 (class == FileIdBothDirectoryRestartInfo) );
52 break;
53
54 case FileRenameInfo:
55 case FileDispositionInfo:
56 case FileAllocationInfo:
57 case FileIoPriorityHintInfo:
58 case FileEndOfFileInfo:
59 default:
61 return FALSE;
62 }
63
65 {
67 return FALSE;
68 }
69 return TRUE;
70}
BOOL WINAPI GetFileInformationByHandleEx(HANDLE handle, FILE_INFO_BY_HANDLE_CLASS class, LPVOID info, DWORD size)
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:102
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
@ FileIdBothDirectoryInformation
Definition: from_kernel.h:98
@ FileNameInformation
Definition: from_kernel.h:70
@ FileBasicInformation
Definition: from_kernel.h:65
GLsizeiptr size
Definition: glext.h:5919
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
NTSTATUS NTAPI NtQueryDirectoryFile(IN HANDLE FileHandle, IN HANDLE EventHandle OPTIONAL, IN PIO_APC_ROUTINE ApcRoutine OPTIONAL, IN PVOID ApcContext OPTIONAL, OUT PIO_STATUS_BLOCK IoStatusBlock, OUT PVOID FileInformation, IN ULONG Length, IN FILE_INFORMATION_CLASS FileInformationClass, IN BOOLEAN ReturnSingleEntry, IN PUNICODE_STRING FileName OPTIONAL, IN BOOLEAN RestartScan)
Definition: iofunc.c:1994
static FILE_INFO_BY_HANDLE_CLASS
Definition: file.c:36
static HANDLE PIO_APC_ROUTINE PVOID PIO_STATUS_BLOCK io
Definition: file.c:100
NTSYSAPI NTSTATUS NTAPI NtQueryInformationFile(IN HANDLE hFile, OUT PIO_STATUS_BLOCK pIoStatusBlock, OUT PVOID FileInformationBuffer, IN ULONG FileInformationBufferLength, IN FILE_INFORMATION_CLASS FileInfoClass)
#define FileStandardInformation
Definition: propsheet.cpp:61
#define STATUS_SUCCESS
Definition: shellext.h:65
Definition: ps.c:97
#define WINAPI
Definition: msvc.h:6