4 * Mount point manager/mounted devices interface.
6 * This file is part of the w32api package.
9 * Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
11 * THIS SOFTWARE IS NOT COPYRIGHTED
13 * This source code is offered for use in the public domain. You may
14 * use, modify or distribute it freely.
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.
27 #pragma GCC system_header
37 #define IOCTL_MOUNTDEV_QUERY_DEVICE_NAME \
38 CTL_CODE(MOUNTDEVCONTROLTYPE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS)
40 #define IOCTL_MOUNTDEV_QUERY_UNIQUE_ID \
41 CTL_CODE(MOUNTDEVCONTROLTYPE, 0, METHOD_BUFFERED, FILE_ANY_ACCESS)
43 #define IOCTL_MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY \
44 CTL_CODE(MOUNTDEVCONTROLTYPE, 1, METHOD_BUFFERED, FILE_ANY_ACCESS)
46 #define IOCTL_MOUNTDEV_QUERY_SUGGESTED_LINK_NAME \
47 CTL_CODE(MOUNTDEVCONTROLTYPE, 3, METHOD_BUFFERED, FILE_ANY_ACCESS)
49 #define IOCTL_MOUNTDEV_LINK_CREATED \
50 CTL_CODE(MOUNTDEVCONTROLTYPE, 4, METHOD_BUFFERED, FILE_ANY_ACCESS)
52 #define IOCTL_MOUNTDEV_LINK_DELETED \
53 CTL_CODE(MOUNTDEVCONTROLTYPE, 5, METHOD_BUFFERED, FILE_ANY_ACCESS)
56 typedef struct _MOUNTDEV_SUGGESTED_LINK_NAME
{
57 BOOLEAN UseOnlyIfThereAreNoOtherLinks
;
60 } MOUNTDEV_SUGGESTED_LINK_NAME
, *PMOUNTDEV_SUGGESTED_LINK_NAME
;
62 typedef struct _MOUNTDEV_UNIQUE_ID
{
63 USHORT UniqueIdLength
;
65 } MOUNTDEV_UNIQUE_ID
, *PMOUNTDEV_UNIQUE_ID
;
67 typedef struct _MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY_OUTPUT
{
69 USHORT OldUniqueIdOffset
;
70 USHORT OldUniqueIdLength
;
71 USHORT NewUniqueIdOffset
;
72 USHORT NewUniqueIdLength
;
73 } MOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY_OUTPUT
;
79 #endif /* __MOUNTDEV_H */