ReactOS 0.4.15-dev-8131-g4988de4
ntddvol.h
Go to the documentation of this file.
1/*
2 * ntddvol.h
3 *
4 * Volume IOCTL interface.
5 *
6 * This file is part of the w32api package.
7 *
8 * Contributors:
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
10 *
11 * THIS SOFTWARE IS NOT COPYRIGHTED
12 *
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
15 *
16 * This code is distributed in the hope that it will be useful but
17 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18 * DISCLAIMED. This includes but is not limited to warranties of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 */
22
23#ifndef _NTDDVOL_
24#define _NTDDVOL_
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30#define IOCTL_VOLUME_BASE ((ULONG) 'V')
31
32#define IOCTL_VOLUME_LOGICAL_TO_PHYSICAL \
33 CTL_CODE(IOCTL_VOLUME_BASE, 8, METHOD_BUFFERED, FILE_ANY_ACCESS)
34
35#define IOCTL_VOLUME_PHYSICAL_TO_LOGICAL \
36 CTL_CODE(IOCTL_VOLUME_BASE, 9, METHOD_BUFFERED, FILE_ANY_ACCESS)
37
38#define IOCTL_VOLUME_READ_PLEX \
39 CTL_CODE(IOCTL_VOLUME_BASE, 11, METHOD_OUT_DIRECT, FILE_READ_ACCESS)
40
41#define IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS \
42 CTL_CODE(IOCTL_VOLUME_BASE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
43
44#define IOCTL_VOLUME_IS_CLUSTERED \
45 CTL_CODE(IOCTL_VOLUME_BASE, 12, METHOD_BUFFERED, FILE_ANY_ACCESS)
46
47#define IOCTL_VOLUME_QUERY_VOLUME_NUMBER \
48 CTL_CODE(IOCTL_VOLUME_BASE, 7, METHOD_BUFFERED, FILE_ANY_ACCESS)
49
50#define IOCTL_VOLUME_IS_PARTITION \
51 CTL_CODE(IOCTL_VOLUME_BASE, 10, METHOD_BUFFERED, FILE_ANY_ACCESS)
52
53#define IOCTL_VOLUME_SET_GPT_ATTRIBUTES \
54 CTL_CODE(IOCTL_VOLUME_BASE, 13, METHOD_BUFFERED, FILE_ANY_ACCESS)
55
56#define IOCTL_VOLUME_GET_GPT_ATTRIBUTES \
57 CTL_CODE(IOCTL_VOLUME_BASE, 14, METHOD_BUFFERED, FILE_ANY_ACCESS)
58
59#define IOCTL_VOLUME_SUPPORTS_ONLINE_OFFLINE \
60 CTL_CODE(IOCTL_VOLUME_BASE, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
61
62#define IOCTL_VOLUME_ONLINE \
63 CTL_CODE(IOCTL_VOLUME_BASE, 2, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
64
65#define IOCTL_VOLUME_OFFLINE \
66 CTL_CODE(IOCTL_VOLUME_BASE, 3, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
67
68#define IOCTL_VOLUME_IS_OFFLINE \
69 CTL_CODE(IOCTL_VOLUME_BASE, 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
70
71#define IOCTL_VOLUME_IS_IO_CAPABLE \
72 CTL_CODE(IOCTL_VOLUME_BASE, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)
73
74#define IOCTL_VOLUME_QUERY_FAILOVER_SET \
75 CTL_CODE(IOCTL_VOLUME_BASE, 6, METHOD_BUFFERED, FILE_ANY_ACCESS)
76
77#define IOCTL_VOLUME_POST_ONLINE \
78 CTL_CODE(IOCTL_VOLUME_BASE, 25, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)
79
80typedef struct _VOLUME_LOGICAL_OFFSET {
83
88
93
99
103
111
112typedef struct _DISK_EXTENT {
117
118typedef struct _VOLUME_DISK_EXTENTS {
122
123typedef struct _VOLUME_NUMBER {
127
128typedef struct _VOLUME_FAILOVER_SET {
132
133#ifdef __cplusplus
134}
135#endif
136
137#endif /* _NTDDVOL_ */
unsigned char BOOLEAN
struct _VOLUME_READ_PLEX_INPUT VOLUME_READ_PLEX_INPUT
struct _VOLUME_PHYSICAL_OFFSETS * PVOLUME_PHYSICAL_OFFSETS
struct _VOLUME_READ_PLEX_INPUT * PVOLUME_READ_PLEX_INPUT
struct _VOLUME_FAILOVER_SET VOLUME_FAILOVER_SET
struct _VOLUME_DISK_EXTENTS * PVOLUME_DISK_EXTENTS
struct _VOLUME_LOGICAL_OFFSET * PVOLUME_LOGICAL_OFFSET
struct _VOLUME_PHYSICAL_OFFSET * PVOLUME_PHYSICAL_OFFSET
struct _VOLUME_PHYSICAL_OFFSET VOLUME_PHYSICAL_OFFSET
struct _VOLUME_NUMBER VOLUME_NUMBER
struct _VOLUME_DISK_EXTENTS VOLUME_DISK_EXTENTS
struct _DISK_EXTENT DISK_EXTENT
struct _VOLUME_NUMBER * PVOLUME_NUMBER
struct _VOLUME_FAILOVER_SET * PVOLUME_FAILOVER_SET
struct _VOLUME_SET_GPT_ATTRIBUTES_INFORMATION VOLUME_SET_GPT_ATTRIBUTES_INFORMATION
struct _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION * PVOLUME_GET_GPT_ATTRIBUTES_INFORMATION
struct _DISK_EXTENT * PDISK_EXTENT
struct _VOLUME_PHYSICAL_OFFSETS VOLUME_PHYSICAL_OFFSETS
struct _VOLUME_LOGICAL_OFFSET VOLUME_LOGICAL_OFFSET
struct _VOLUME_GET_GPT_ATTRIBUTES_INFORMATION VOLUME_GET_GPT_ATTRIBUTES_INFORMATION
struct _VOLUME_SET_GPT_ATTRIBUTES_INFORMATION * PVOLUME_SET_GPT_ATTRIBUTES_INFORMATION
unsigned short USHORT
Definition: pedump.c:61
ULONG DiskNumber
Definition: ntddvol.h:113
LARGE_INTEGER StartingOffset
Definition: ntddvol.h:114
LARGE_INTEGER ExtentLength
Definition: ntddvol.h:115
DISK_EXTENT Extents[1]
Definition: ntddvol.h:120
ULONG NumberOfDiskExtents
Definition: ntddvol.h:119
ULONG DiskNumbers[1]
Definition: ntddvol.h:130
LONGLONG LogicalOffset
Definition: ntddvol.h:81
WCHAR VolumeManagerName[8]
Definition: ntddvol.h:125
ULONG VolumeNumber
Definition: ntddvol.h:124
VOLUME_PHYSICAL_OFFSET PhysicalOffset[1]
Definition: ntddvol.h:91
ULONG NumberOfPhysicalOffsets
Definition: ntddvol.h:90
LARGE_INTEGER ByteOffset
Definition: ntddvol.h:95
int64_t LONGLONG
Definition: typedefs.h:68
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
__wchar_t WCHAR
Definition: xmlstorage.h:180