ReactOS  0.4.13-dev-563-g0561610
GetFileInformationByHandleEx.c File Reference
#include "k32_vista.h"
#include <ndk/rtlfuncs.h>
#include <ndk/iofuncs.h>
Include dependency graph for GetFileInformationByHandleEx.c:

Go to the source code of this file.

Functions

BOOL WINAPI GetFileInformationByHandleEx (HANDLE handle, FILE_INFO_BY_HANDLE_CLASS class, LPVOID info, DWORD size)
 

Function Documentation

◆ GetFileInformationByHandleEx()

BOOL WINAPI GetFileInformationByHandleEx ( HANDLE  handle,
FILE_INFO_BY_HANDLE_CLASS  class,
LPVOID  info,
DWORD  size 
)

Definition at line 12 of file GetFileInformationByHandleEx.c.

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 
64  if (status != STATUS_SUCCESS)
65  {
67  return FALSE;
68  }
69  return TRUE;
70 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
smooth NULL
Definition: ftsmooth.c:416
GLsizeiptr size
Definition: glext.h:5919
#define SetLastError(x)
Definition: compat.h:409
NTSTATUS NTAPI NtQueryInformationFile(HANDLE hFile, PIO_STATUS_BLOCK io, PVOID ptr, ULONG len, FILE_INFORMATION_CLASS FileInformationClass)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
#define FileStandardInformation
Definition: propsheet.cpp:61
#define ERROR_CALL_NOT_IMPLEMENTED
Definition: compat.h:92
static HANDLE PIO_APC_ROUTINE PVOID PIO_STATUS_BLOCK io
Definition: file.c:100
return STATUS_SUCCESS
Definition: btrfs.c:2777
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:1976
static SERVICE_STATUS status
Definition: service.c:31
Definition: ps.c:97

Referenced by BtrfsContextMenu::reflink_copy(), reflink_copy2(), and TLB_ReadTypeLib().