ntdll: Add ACTCTX field limit checks to RtlCreateActivationContext().
[wine.git] / dlls / mountmgr.sys / mountmgr.h
blob143401e3b9bde2d343c4bc49441f201bf041b6d5
1 /*
2 * Mountmanager private header
4 * Copyright 2008 Maarten Lankhorst
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_MOUNTMGR_H
22 #define __WINE_MOUNTMGR_H
24 #include <stdarg.h>
26 #include "ntstatus.h"
27 #define WIN32_NO_STATUS
28 #include "windef.h"
29 #include "winbase.h"
30 #include "winternl.h"
31 #include "winioctl.h"
32 #include "ntddstor.h"
33 #include "ntddscsi.h"
34 #include "ntddcdrm.h"
35 #include "ddk/wdm.h"
36 #define WINE_MOUNTMGR_EXTENSIONS
37 #include "ddk/mountmgr.h"
39 /* device functions */
41 enum device_type
43 DEVICE_UNKNOWN,
44 DEVICE_HARDDISK,
45 DEVICE_HARDDISK_VOL,
46 DEVICE_FLOPPY,
47 DEVICE_CDROM,
48 DEVICE_DVD,
49 DEVICE_NETWORK,
50 DEVICE_RAMDISK
53 extern NTSTATUS WINAPI harddisk_driver_entry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) DECLSPEC_HIDDEN;
54 extern NTSTATUS WINAPI serial_driver_entry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) DECLSPEC_HIDDEN;
55 extern NTSTATUS WINAPI parallel_driver_entry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) DECLSPEC_HIDDEN;
57 enum scsi_device_type
59 SCSI_DISK_PERIPHERAL = 0x00,
60 SCSI_TAPE_PERIPHERAL = 0x01,
61 SCSI_PRINTER_PERIPHERAL = 0x02,
62 SCSI_PROCESSOR_PERIPHERAL = 0x03,
63 SCSI_WORM_PERIPHERAL = 0x04,
64 SCSI_CDROM_PERIPHERAL = 0x05,
65 SCSI_SCANNER_PERIPHERAL = 0x06,
66 SCSI_OPTICAL_DISK_PERIPHERAL = 0x07,
67 SCSI_MEDIUM_CHANGER_PERIPHERAL = 0x08,
68 SCSI_COMMS_PERIPHERAL = 0x09,
69 SCSI_ASC_GRAPHICS_PERIPHERAL = 0x0A,
70 SCSI_ASC_GRAPHICS2_PERIPHERAL = 0x0B,
71 SCSI_ARRAY_PERIPHERAL = 0x0C,
72 SCSI_ENCLOSURE_PERIPHERAL = 0x0D,
73 SCSI_REDUCED_DISK_PERIPHERAL = 0x0E,
74 SCSI_CARD_READER_PERIPHERAL = 0x0F,
75 SCSI_BRIDGE_PERIPHERAL = 0x10,
76 SCSI_OBJECT_STORAGE_PERIPHERAL = 0x11,
77 SCSI_DRIVE_CONTROLLER_PERIPHERAL = 0x12,
78 SCSI_REDUCED_CDROM_PERIPHERAL = 0x15,
79 SCSI_UNKNOWN_PERIPHERAL = ~0
82 struct scsi_info
84 enum scsi_device_type type;
85 SCSI_ADDRESS addr;
86 UINT init_id;
87 char driver[64];
88 char model[64];
91 extern NTSTATUS add_volume( const char *udi, const char *device, const char *mount_point,
92 enum device_type type, const GUID *guid, const char *disk_serial,
93 const struct scsi_info *info ) DECLSPEC_HIDDEN;
94 extern NTSTATUS remove_volume( const char *udi ) DECLSPEC_HIDDEN;
95 extern NTSTATUS add_dos_device( int letter, const char *udi, const char *device,
96 const char *mount_point, enum device_type type, const GUID *guid,
97 const struct scsi_info *info ) DECLSPEC_HIDDEN;
98 extern NTSTATUS remove_dos_device( int letter, const char *udi ) DECLSPEC_HIDDEN;
99 extern NTSTATUS query_unix_drive( void *buff, SIZE_T insize, SIZE_T outsize,
100 IO_STATUS_BLOCK *iosb ) DECLSPEC_HIDDEN;
102 /* mount point functions */
104 struct mount_point;
106 extern struct mount_point *add_dosdev_mount_point( DEVICE_OBJECT *device, UNICODE_STRING *device_name,
107 int drive ) DECLSPEC_HIDDEN;
108 extern struct mount_point *add_volume_mount_point( DEVICE_OBJECT *device, UNICODE_STRING *device_name,
109 const GUID *guid ) DECLSPEC_HIDDEN;
110 extern void delete_mount_point( struct mount_point *mount ) DECLSPEC_HIDDEN;
111 extern void set_mount_point_id( struct mount_point *mount, const void *id, unsigned int id_len ) DECLSPEC_HIDDEN;
113 #endif /* __WINE_MOUNTMGR_H */