Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
76a9fa12
Commit
76a9fa12
authored
22 years ago
by
Juergen Schmied
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Types and partial implementation for NtQueryVolumeInformationFile.
parent
a44e0b0f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/ntdll/file.c
+79
-0
79 additions, 0 deletions
dlls/ntdll/file.c
include/winioctl.h
+50
-0
50 additions, 0 deletions
include/winioctl.h
with
129 additions
and
0 deletions
dlls/ntdll/file.c
+
79
−
0
View file @
76a9fa12
...
...
@@ -22,6 +22,7 @@
#include
"ntdll_misc.h"
#include
"ntddk.h"
#include
"winioctl.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
ntdll
);
...
...
@@ -252,7 +253,85 @@ NTSTATUS WINAPI NtQueryVolumeInformationFile (
IN
ULONG
Length
,
IN
FS_INFORMATION_CLASS
FSInformationClass
)
{
ULONG
len
=
0
;
FIXME
(
"(0x%08x %p %p 0x%08lx 0x%08x) stub!
\n
"
,
FileHandle
,
IoStatusBlock
,
FSInformation
,
Length
,
FSInformationClass
);
switch
(
FSInformationClass
)
{
case
FileFsVolumeInformation
:
len
=
sizeof
(
FILE_FS_VOLUME_INFORMATION
);
break
;
case
FileFsLabelInformation
:
len
=
0
;
break
;
case
FileFsSizeInformation
:
len
=
sizeof
(
FILE_FS_SIZE_INFORMATION
);
break
;
case
FileFsDeviceInformation
:
len
=
sizeof
(
FILE_FS_DEVICE_INFORMATION
);
break
;
case
FileFsAttributeInformation
:
len
=
sizeof
(
FILE_FS_ATTRIBUTE_INFORMATION
);
break
;
case
FileFsControlInformation
:
len
=
0
;
break
;
case
FileFsFullSizeInformation
:
len
=
0
;
break
;
case
FileFsObjectIdInformation
:
len
=
0
;
break
;
case
FileFsMaximumInformation
:
len
=
0
;
break
;
}
if
(
Length
<
len
)
return
STATUS_BUFFER_TOO_SMALL
;
switch
(
FSInformationClass
)
{
case
FileFsVolumeInformation
:
break
;
case
FileFsLabelInformation
:
break
;
case
FileFsSizeInformation
:
break
;
case
FileFsDeviceInformation
:
if
(
FSInformation
)
{
FILE_FS_DEVICE_INFORMATION
*
DeviceInfo
=
FSInformation
;
DeviceInfo
->
DeviceType
=
FILE_DEVICE_DISK
;
DeviceInfo
->
Characteristics
=
0
;
break
;
};
case
FileFsAttributeInformation
:
break
;
case
FileFsControlInformation
:
break
;
case
FileFsFullSizeInformation
:
break
;
case
FileFsObjectIdInformation
:
break
;
case
FileFsMaximumInformation
:
break
;
}
IoStatusBlock
->
DUMMYUNIONNAME
.
Status
=
STATUS_SUCCESS
;
IoStatusBlock
->
Information
=
len
;
return
STATUS_SUCCESS
;
}
This diff is collapsed.
Click to expand it.
include/winioctl.h
+
50
−
0
View file @
76a9fa12
...
...
@@ -81,6 +81,9 @@
#define FILE_DEVICE_FULLSCREEN_VIDEO 0x00000034
#define FILE_DEVICE_DFS_FILE_SYSTEM 0x00000035
#define FILE_DEVICE_DFS_VOLUME 0x00000036
#define FILE_DEVICE_SERENUM 0x00000037
#define FILE_DEVICE_TERMSRV 0x00000038
#define FILE_DEVICE_KSEC 0x00000039
#define METHOD_BUFFERED 0
#define METHOD_IN_DIRECT 1
...
...
@@ -345,4 +348,51 @@ typedef struct tagMID {
/* End VWIN32 information */
/*
* NT I/O-Manager
*/
/*
* structures for NtQueryVolumeInformationFile
* (wdm.h)
*/
/* FileFsVolumeInformation = 1 */
typedef
struct
_FILE_FS_VOLUME_INFORMATION
{
LARGE_INTEGER
VolumeCreationTime
;
ULONG
VolumeSerialNumber
;
ULONG
VolumeLabelLength
;
BOOLEAN
SupportsObjects
;
WCHAR
VolumeLabel
[
1
];
}
FILE_FS_VOLUME_INFORMATION
,
*
PFILE_FS_VOLUME_INFORMATION
;
/* FileFsLabelInformation = 2 */
/*
unknown
*/
/* FileFsSizeInformation = 3 */
typedef
struct
_FILE_FS_SIZE_INFORMATION
{
LARGE_INTEGER
TotalAllocationUnits
;
LARGE_INTEGER
AvailableAllocationUnits
;
ULONG
SectorsPerAllocationUnit
;
ULONG
BytesPerSector
;
}
FILE_FS_SIZE_INFORMATION
,
*
PFILE_FS_SIZE_INFORMATION
;
/* FileFsDeviceInformation = 4 */
typedef
struct
_FILE_FS_DEVICE_INFORMATION
{
DEVICE_TYPE
DeviceType
;
ULONG
Characteristics
;
}
FILE_FS_DEVICE_INFORMATION
,
*
PFILE_FS_DEVICE_INFORMATION
;
/* FileFsAttributeInformation = 5 */
typedef
struct
_FILE_FS_ATTRIBUTE_INFORMATION
{
ULONG
FileSystemAttribute
;
LONG
MaximumComponentNameLength
;
ULONG
FileSystemNameLength
;
WCHAR
FileSystemName
[
1
];
}
FILE_FS_ATTRIBUTE_INFORMATION
,
*
PFILE_FS_ATTRIBUTE_INFORMATION
;
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment