mountmgr: Allow to specify the drive letter explicitly when creating/removing a drive.
[wine] / dlls / mountmgr.sys / mountmgr.h
1 /*
2  * Mountmanager private header
3  *
4  * Copyright 2008 Maarten Lankhorst
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #include <stdarg.h>
22
23 #define NONAMELESSUNION
24 #define NONAMELESSSTRUCT
25
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 "ntddcdrm.h"
34 #include "ddk/wdm.h"
35 #include "ddk/mountmgr.h"
36
37 extern void initialize_hal(void);
38 extern void initialize_diskarbitration(void);
39
40 /* device functions */
41
42 extern NTSTATUS add_dos_device( int letter, const char *udi, const char *device,
43                                 const char *mount_point, DWORD type );
44 extern NTSTATUS remove_dos_device( int letter, const char *udi );
45 extern NTSTATUS WINAPI harddisk_driver_entry( DRIVER_OBJECT *driver, UNICODE_STRING *path );
46
47 /* mount point functions */
48
49 struct mount_point;
50
51 extern struct mount_point *add_dosdev_mount_point( DEVICE_OBJECT *device, UNICODE_STRING *device_name,
52                                                    int drive, const void *id, unsigned int id_len );
53 extern struct mount_point *add_volume_mount_point( DEVICE_OBJECT *device, UNICODE_STRING *device_name,
54                                                    int drive, const void *id, unsigned int id_len );
55 extern void delete_mount_point( struct mount_point *mount );
56 extern void set_mount_point_id( struct mount_point *mount, const void *id, unsigned int id_len );