Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f30cfa88
Commit
f30cfa88
authored
Mar 16, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented NtQueryDirectoryFile (partly based on a patch by Eric
Pouech).
parent
15c40fde
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
27 deletions
+55
-27
Makefile.in
dlls/ntdll/Makefile.in
+1
-0
directory.c
dlls/ntdll/directory.c
+0
-0
file.c
dlls/ntdll/file.c
+1
-25
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+4
-2
winternl.h
include/winternl.h
+49
-0
No files found.
dlls/ntdll/Makefile.in
View file @
f30cfa88
...
...
@@ -10,6 +10,7 @@ C_SRCS = \
cdrom.c
\
critsection.c
\
debugtools.c
\
directory.c
\
env.c
\
error.c
\
exception.c
\
...
...
dlls/ntdll/directory.c
0 → 100644
View file @
f30cfa88
This diff is collapsed.
Click to expand it.
dlls/ntdll/file.c
View file @
f30cfa88
...
...
@@ -206,7 +206,7 @@ static void fileio_async_cleanup( struct async_private *ovp )
* Retrieve the Nt Status code from errno.
* Try to be consistent with FILE_SetDosError().
*/
static
DWORD
FILE_GetNtStatus
(
void
)
NTSTATUS
FILE_GetNtStatus
(
void
)
{
int
err
=
errno
;
DWORD
nt
;
...
...
@@ -924,30 +924,6 @@ NTSTATUS WINAPI NtSetInformationFile(HANDLE hFile, PIO_STATUS_BLOCK io_status,
}
/******************************************************************************
* NtQueryDirectoryFile [NTDLL.@]
* ZwQueryDirectoryFile [NTDLL.@]
*/
NTSTATUS
WINAPI
NtQueryDirectoryFile
(
IN
HANDLE
FileHandle
,
IN
HANDLE
Event
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
)
{
FIXME
(
"(%p %p %p %p %p %p 0x%08lx 0x%08x 0x%08x %p 0x%08x
\n
"
,
FileHandle
,
Event
,
ApcRoutine
,
ApcContext
,
IoStatusBlock
,
FileInformation
,
Length
,
FileInformationClass
,
ReturnSingleEntry
,
debugstr_us
(
FileName
),
RestartScan
);
return
0
;
}
/******************************************************************************
* NtQueryVolumeInformationFile [NTDLL.@]
* ZwQueryVolumeInformationFile [NTDLL.@]
*
...
...
dlls/ntdll/ntdll_misc.h
View file @
f30cfa88
...
...
@@ -79,7 +79,6 @@ extern HANDLE (WINAPI *pCreateFileW)( LPCWSTR filename, DWORD access, DWORD shar
DWORD
attributes
,
HANDLE
template
);
/* Device IO */
/* ntdll/cdrom.c.c */
extern
NTSTATUS
CDROM_DeviceIoControl
(
HANDLE
hDevice
,
HANDLE
hEvent
,
PIO_APC_ROUTINE
UserApcRoutine
,
PVOID
UserApcContext
,
...
...
@@ -88,7 +87,10 @@ extern NTSTATUS CDROM_DeviceIoControl(HANDLE hDevice,
LPVOID
lpInBuffer
,
DWORD
nInBufferSize
,
LPVOID
lpOutBuffer
,
DWORD
nOutBufferSize
);
/* memory/virtual.c */
/* file I/O */
extern
NTSTATUS
FILE_GetNtStatus
(
void
);
/* virtual memory */
typedef
BOOL
(
*
HANDLERPROC
)(
LPVOID
,
LPCVOID
);
extern
BOOL
VIRTUAL_SetFaultHandler
(
LPCVOID
addr
,
HANDLERPROC
proc
,
LPVOID
arg
);
extern
DWORD
VIRTUAL_HandleFault
(
LPCVOID
addr
);
...
...
include/winternl.h
View file @
f30cfa88
...
...
@@ -243,6 +243,54 @@ typedef enum _FILE_INFORMATION_CLASS {
FileMaximumInformation
}
FILE_INFORMATION_CLASS
,
*
PFILE_INFORMATION_CLASS
;
typedef
struct
_FILE_DIRECTORY_INFORMATION
{
ULONG
NextEntryOffset
;
ULONG
FileIndex
;
LARGE_INTEGER
CreationTime
;
LARGE_INTEGER
LastAccessTime
;
LARGE_INTEGER
LastWriteTime
;
LARGE_INTEGER
ChangeTime
;
LARGE_INTEGER
EndOfFile
;
LARGE_INTEGER
AllocationSize
;
ULONG
FileAttributes
;
ULONG
FileNameLength
;
WCHAR
FileName
[
ANYSIZE_ARRAY
];
}
FILE_DIRECTORY_INFORMATION
,
*
PFILE_DIRECTORY_INFORMATION
;
typedef
struct
_FILE_FULL_DIRECTORY_INFORMATION
{
ULONG
NextEntryOffset
;
ULONG
FileIndex
;
LARGE_INTEGER
CreationTime
;
LARGE_INTEGER
LastAccessTime
;
LARGE_INTEGER
LastWriteTime
;
LARGE_INTEGER
ChangeTime
;
LARGE_INTEGER
EndOfFile
;
LARGE_INTEGER
AllocationSize
;
ULONG
FileAttributes
;
ULONG
FileNameLength
;
ULONG
EaSize
;
WCHAR
FileName
[
ANYSIZE_ARRAY
];
}
FILE_FULL_DIRECTORY_INFORMATION
,
*
PFILE_FULL_DIRECTORY_INFORMATION
,
FILE_FULL_DIR_INFORMATION
,
*
PFILE_FULL_DIR_INFORMATION
;
typedef
struct
_FILE_BOTH_DIRECTORY_INFORMATION
{
ULONG
NextEntryOffset
;
ULONG
FileIndex
;
LARGE_INTEGER
CreationTime
;
LARGE_INTEGER
LastAccessTime
;
LARGE_INTEGER
LastWriteTime
;
LARGE_INTEGER
ChangeTime
;
LARGE_INTEGER
EndOfFile
;
LARGE_INTEGER
AllocationSize
;
ULONG
FileAttributes
;
ULONG
FileNameLength
;
ULONG
EaSize
;
CHAR
ShortNameLength
;
WCHAR
ShortName
[
12
];
WCHAR
FileName
[
ANYSIZE_ARRAY
];
}
FILE_BOTH_DIRECTORY_INFORMATION
,
*
PFILE_BOTH_DIRECTORY_INFORMATION
,
FILE_BOTH_DIR_INFORMATION
,
*
PFILE_BOTH_DIR_INFORMATION
;
typedef
struct
_FILE_BASIC_INFORMATION
{
LARGE_INTEGER
CreationTime
;
LARGE_INTEGER
LastAccessTime
;
...
...
@@ -1035,6 +1083,7 @@ NTSTATUS WINAPI NtProtectVirtualMemory(HANDLE,PVOID*,ULONG*,ULONG,ULONG*);
NTSTATUS
WINAPI
NtPulseEvent
(
HANDLE
,
PULONG
);
NTSTATUS
WINAPI
NtQueueApcThread
(
HANDLE
,
PNTAPCFUNC
,
ULONG_PTR
,
ULONG_PTR
,
ULONG_PTR
);
NTSTATUS
WINAPI
NtQueryDefaultLocale
(
BOOLEAN
,
LCID
*
);
NTSTATUS
WINAPI
NtQueryDirectoryFile
(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
FILE_INFORMATION_CLASS
,
BOOLEAN
,
PUNICODE_STRING
,
BOOLEAN
);
NTSTATUS
WINAPI
NtQueryInformationFile
(
HANDLE
,
PIO_STATUS_BLOCK
,
PVOID
,
LONG
,
FILE_INFORMATION_CLASS
);
NTSTATUS
WINAPI
NtQueryInformationProcess
(
HANDLE
,
PROCESSINFOCLASS
,
PVOID
,
ULONG
,
PULONG
);
NTSTATUS
WINAPI
NtQueryInformationThread
(
HANDLE
,
THREADINFOCLASS
,
PVOID
,
ULONG
,
PULONG
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment