1 | /* $Id: vbsfshared.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox Windows Guest Shared Folders FSD - Definitions shared with the network provider dll.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012-2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef GA_INCLUDED_SRC_WINNT_SharedFolders_driver_vbsfshared_h
|
---|
29 | #define GA_INCLUDED_SRC_WINNT_SharedFolders_driver_vbsfshared_h
|
---|
30 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
31 | # pragma once
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | /** The network provider name for shared folders. */
|
---|
35 | #define MRX_VBOX_PROVIDER_NAME_U L"VirtualBox Shared Folders"
|
---|
36 |
|
---|
37 | /** The filesystem name for shared folders. */
|
---|
38 | #define MRX_VBOX_FILESYS_NAME_U L"VBoxSharedFolderFS"
|
---|
39 |
|
---|
40 | /** The redirector device name. */
|
---|
41 | #define DD_MRX_VBOX_FS_DEVICE_NAME_U L"\\Device\\VBoxMiniRdr"
|
---|
42 |
|
---|
43 | /** Volume label prefix. */
|
---|
44 | #define VBOX_VOLNAME_PREFIX L"VBOX_"
|
---|
45 | /** Size of volume label prefix. */
|
---|
46 | #define VBOX_VOLNAME_PREFIX_SIZE (sizeof(VBOX_VOLNAME_PREFIX) - sizeof(VBOX_VOLNAME_PREFIX[0]))
|
---|
47 |
|
---|
48 | /** NT path of the symbolic link, which is used by the user mode dll to
|
---|
49 | * open the FSD. */
|
---|
50 | #define DD_MRX_VBOX_USERMODE_SHADOW_DEV_NAME_U L"\\??\\VBoxMiniRdrDN"
|
---|
51 | /** Win32 path of the symbolic link, which is used by the user mode dll
|
---|
52 | * to open the FSD. */
|
---|
53 | #define DD_MRX_VBOX_USERMODE_DEV_NAME_U L"\\\\.\\VBoxMiniRdrDN"
|
---|
54 |
|
---|
55 | /** @name IOCTL_MRX_VBOX_XXX - VBoxSF IOCTL codes.
|
---|
56 | * @{ */
|
---|
57 | #define IOCTL_MRX_VBOX_ADDCONN CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 100, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
58 | #define IOCTL_MRX_VBOX_GETCONN CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 101, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
59 | #define IOCTL_MRX_VBOX_DELCONN CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 102, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
60 | #define IOCTL_MRX_VBOX_GETLIST CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 103, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
61 | #define IOCTL_MRX_VBOX_GETGLOBALLIST CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 104, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
62 | #define IOCTL_MRX_VBOX_GETGLOBALCONN CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 105, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
63 | #define IOCTL_MRX_VBOX_START CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 106, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
64 | #define IOCTL_MRX_VBOX_STOP CTL_CODE(FILE_DEVICE_NETWORK_FILE_SYSTEM, 107, METHOD_BUFFERED, FILE_ANY_ACCESS)
|
---|
65 | /** @} */
|
---|
66 |
|
---|
67 | #endif /* !GA_INCLUDED_SRC_WINNT_SharedFolders_driver_vbsfshared_h */
|
---|