2008-03-04 07:58:32 +01:00
|
|
|
/*
|
|
|
|
* Mountmanager private header
|
|
|
|
*
|
|
|
|
* Copyright 2008 Maarten Lankhorst
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*/
|
|
|
|
|
2008-10-21 15:01:52 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#define NONAMELESSUNION
|
|
|
|
#define NONAMELESSSTRUCT
|
|
|
|
|
|
|
|
#include "ntstatus.h"
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include "windef.h"
|
|
|
|
#include "winbase.h"
|
|
|
|
#include "winternl.h"
|
|
|
|
#include "winioctl.h"
|
|
|
|
#include "ntddstor.h"
|
|
|
|
#include "ntddcdrm.h"
|
|
|
|
#include "ddk/wdm.h"
|
2008-10-23 15:48:08 +02:00
|
|
|
#define WINE_MOUNTMGR_EXTENSIONS
|
2008-10-21 15:01:52 +02:00
|
|
|
#include "ddk/mountmgr.h"
|
|
|
|
|
2008-03-04 07:58:32 +01:00
|
|
|
extern void initialize_hal(void);
|
|
|
|
extern void initialize_diskarbitration(void);
|
2008-10-21 15:02:10 +02:00
|
|
|
|
|
|
|
/* device functions */
|
|
|
|
|
2008-11-12 10:47:49 +01:00
|
|
|
enum device_type
|
|
|
|
{
|
|
|
|
DEVICE_UNKNOWN,
|
|
|
|
DEVICE_HARDDISK,
|
|
|
|
DEVICE_HARDDISK_VOL,
|
|
|
|
DEVICE_FLOPPY,
|
|
|
|
DEVICE_CDROM,
|
2011-02-08 23:12:54 +01:00
|
|
|
DEVICE_DVD,
|
2008-11-12 10:47:49 +01:00
|
|
|
DEVICE_NETWORK,
|
|
|
|
DEVICE_RAMDISK
|
|
|
|
};
|
|
|
|
|
2009-07-21 20:30:43 +02:00
|
|
|
extern NTSTATUS add_volume( const char *udi, const char *device, const char *mount_point,
|
|
|
|
enum device_type type, const GUID *guid );
|
|
|
|
extern NTSTATUS remove_volume( const char *udi );
|
2008-10-23 15:44:18 +02:00
|
|
|
extern NTSTATUS add_dos_device( int letter, const char *udi, const char *device,
|
2009-07-20 16:05:04 +02:00
|
|
|
const char *mount_point, enum device_type type, const GUID *guid );
|
2008-10-23 15:44:18 +02:00
|
|
|
extern NTSTATUS remove_dos_device( int letter, const char *udi );
|
2009-07-22 21:02:47 +02:00
|
|
|
extern NTSTATUS query_dos_device( int letter, enum device_type *type, char **device, char **mount_point );
|
2008-10-21 15:02:10 +02:00
|
|
|
extern NTSTATUS WINAPI harddisk_driver_entry( DRIVER_OBJECT *driver, UNICODE_STRING *path );
|
|
|
|
|
|
|
|
/* mount point functions */
|
|
|
|
|
|
|
|
struct mount_point;
|
|
|
|
|
|
|
|
extern struct mount_point *add_dosdev_mount_point( DEVICE_OBJECT *device, UNICODE_STRING *device_name,
|
2009-07-20 21:00:33 +02:00
|
|
|
int drive );
|
2008-10-21 15:02:10 +02:00
|
|
|
extern struct mount_point *add_volume_mount_point( DEVICE_OBJECT *device, UNICODE_STRING *device_name,
|
2009-07-20 21:00:33 +02:00
|
|
|
const GUID *guid );
|
2008-10-21 15:20:09 +02:00
|
|
|
extern void delete_mount_point( struct mount_point *mount );
|
2008-10-21 15:02:10 +02:00
|
|
|
extern void set_mount_point_id( struct mount_point *mount, const void *id, unsigned int id_len );
|