mountmgr: Move the DBus support to the Unix library.
[wine.git] / dlls / mountmgr.sys / mountmgr.h
blobc3557d7e54884d3d1c4b59902d8c18179f0e3ee8
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 extern void initialize_diskarbitration(void) DECLSPEC_HIDDEN;
41 extern WCHAR *strdupW( const WCHAR * ) DECLSPEC_HIDDEN;
43 /* device functions */
45 enum device_type
47 DEVICE_UNKNOWN,
48 DEVICE_HARDDISK,
49 DEVICE_HARDDISK_VOL,
50 DEVICE_FLOPPY,
51 DEVICE_CDROM,
52 DEVICE_DVD,
53 DEVICE_NETWORK,
54 DEVICE_RAMDISK
57 extern NTSTATUS WINAPI harddisk_driver_entry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) DECLSPEC_HIDDEN;
58 extern NTSTATUS WINAPI serial_driver_entry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) DECLSPEC_HIDDEN;
59 extern NTSTATUS WINAPI parallel_driver_entry( DRIVER_OBJECT *driver, UNICODE_STRING *path ) DECLSPEC_HIDDEN;
61 enum scsi_device_type
63 SCSI_DISK_PERIPHERAL = 0x00,
64 SCSI_TAPE_PERIPHERAL = 0x01,
65 SCSI_PRINTER_PERIPHERAL = 0x02,
66 SCSI_PROCESSOR_PERIPHERAL = 0x03,
67 SCSI_WORM_PERIPHERAL = 0x04,
68 SCSI_CDROM_PERIPHERAL = 0x05,
69 SCSI_SCANNER_PERIPHERAL = 0x06,
70 SCSI_OPTICAL_DISK_PERIPHERAL = 0x07,
71 SCSI_MEDIUM_CHANGER_PERIPHERAL = 0x08,
72 SCSI_COMMS_PERIPHERAL = 0x09,
73 SCSI_ASC_GRAPHICS_PERIPHERAL = 0x0A,
74 SCSI_ASC_GRAPHICS2_PERIPHERAL = 0x0B,
75 SCSI_ARRAY_PERIPHERAL = 0x0C,
76 SCSI_ENCLOSURE_PERIPHERAL = 0x0D,
77 SCSI_REDUCED_DISK_PERIPHERAL = 0x0E,
78 SCSI_CARD_READER_PERIPHERAL = 0x0F,
79 SCSI_BRIDGE_PERIPHERAL = 0x10,
80 SCSI_OBJECT_STORAGE_PERIPHERAL = 0x11,
81 SCSI_DRIVE_CONTROLLER_PERIPHERAL = 0x12,
82 SCSI_REDUCED_CDROM_PERIPHERAL = 0x15,
83 SCSI_UNKNOWN_PERIPHERAL = ~0
86 struct scsi_info
88 enum scsi_device_type type;
89 SCSI_ADDRESS addr;
90 UINT init_id;
91 char driver[64];
92 char model[64];
95 extern NTSTATUS add_volume( const char *udi, const char *device, const char *mount_point,
96 enum device_type type, const GUID *guid, const char *disk_serial,
97 const struct scsi_info *info ) DECLSPEC_HIDDEN;
98 extern NTSTATUS remove_volume( const char *udi ) DECLSPEC_HIDDEN;
99 extern NTSTATUS add_dos_device( int letter, const char *udi, const char *device,
100 const char *mount_point, enum device_type type, const GUID *guid,
101 const struct scsi_info *info ) DECLSPEC_HIDDEN;
102 extern NTSTATUS remove_dos_device( int letter, const char *udi ) DECLSPEC_HIDDEN;
103 extern NTSTATUS query_unix_drive( void *buff, SIZE_T insize, SIZE_T outsize,
104 IO_STATUS_BLOCK *iosb ) DECLSPEC_HIDDEN;
106 /* mount point functions */
108 struct mount_point;
110 extern struct mount_point *add_dosdev_mount_point( DEVICE_OBJECT *device, UNICODE_STRING *device_name,
111 int drive ) DECLSPEC_HIDDEN;
112 extern struct mount_point *add_volume_mount_point( DEVICE_OBJECT *device, UNICODE_STRING *device_name,
113 const GUID *guid ) DECLSPEC_HIDDEN;
114 extern void delete_mount_point( struct mount_point *mount ) DECLSPEC_HIDDEN;
115 extern void set_mount_point_id( struct mount_point *mount, const void *id, unsigned int id_len ) DECLSPEC_HIDDEN;
117 #ifdef __APPLE__
118 extern ULONG get_dhcp_request_param( const char *unix_name, struct mountmgr_dhcp_request_param *param,
119 char *buf, ULONG offset, ULONG size ) DECLSPEC_HIDDEN;
120 #endif
121 #endif /* __WINE_MOUNTMGR_H */