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
2a098ab8
Commit
2a098ab8
authored
Mar 10, 2015
by
Qian Hong
Committed by
Alexandre Julliard
Mar 10, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implemented FileNetworkOpenInformation class support in NtQueryInformationFile.
parent
2a925eba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
file.c
dlls/ntdll/file.c
+35
-1
No files found.
dlls/ntdll/file.c
View file @
2a098ab8
...
...
@@ -2190,7 +2190,7 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE hFile, PIO_STATUS_BLOCK io,
0
,
/* FileMoveClusterInformation */
0
,
/* FileQuotaInformation */
0
,
/* FileReparsePointInformation */
0
,
/* FileNetworkOpenInformation */
sizeof
(
FILE_NETWORK_OPEN_INFORMATION
),
/* FileNetworkOpenInformation */
0
,
/* FileAttributeTagInformation */
0
,
/* FileTrackingInformation */
0
,
/* FileIdBothDirectoryInformation */
...
...
@@ -2414,6 +2414,40 @@ NTSTATUS WINAPI NtQueryInformationFile( HANDLE hFile, PIO_STATUS_BLOCK io,
}
}
break
;
case
FileNetworkOpenInformation
:
{
FILE_NETWORK_OPEN_INFORMATION
*
info
=
ptr
;
ANSI_STRING
unix_name
;
if
(
!
(
io
->
u
.
Status
=
server_get_unix_name
(
hFile
,
&
unix_name
)))
{
ULONG
attributes
;
struct
stat
st
;
if
(
get_file_info
(
unix_name
.
Buffer
,
&
st
,
&
attributes
)
==
-
1
)
io
->
u
.
Status
=
FILE_GetNtStatus
();
else
if
(
!
S_ISREG
(
st
.
st_mode
)
&&
!
S_ISDIR
(
st
.
st_mode
))
io
->
u
.
Status
=
STATUS_INVALID_INFO_CLASS
;
else
{
FILE_BASIC_INFORMATION
basic
;
FILE_STANDARD_INFORMATION
std
;
fill_file_info
(
&
st
,
attributes
,
&
basic
,
FileBasicInformation
);
fill_file_info
(
&
st
,
attributes
,
&
std
,
FileStandardInformation
);
info
->
CreationTime
=
basic
.
CreationTime
;
info
->
LastAccessTime
=
basic
.
LastAccessTime
;
info
->
LastWriteTime
=
basic
.
LastWriteTime
;
info
->
ChangeTime
=
basic
.
ChangeTime
;
info
->
AllocationSize
=
std
.
AllocationSize
;
info
->
EndOfFile
=
std
.
EndOfFile
;
info
->
FileAttributes
=
basic
.
FileAttributes
;
}
RtlFreeAnsiString
(
&
unix_name
);
}
}
break
;
default:
FIXME
(
"Unsupported class (%d)
\n
"
,
class
);
io
->
u
.
Status
=
STATUS_NOT_IMPLEMENTED
;
...
...
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