1 | /* $Id: Arm64CopySupStub.cpp 106710 2024-10-25 23:38:20Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox Windows Guest Shared Folders - Ugly hack for missing CopySup.lib on ARM64.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2024 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 |
|
---|
29 | /*********************************************************************************************************************************
|
---|
30 | * Header Files *
|
---|
31 | *********************************************************************************************************************************/
|
---|
32 | #include <iprt/nt/nt.h> /* includes ntifs.h + wdm.h */
|
---|
33 |
|
---|
34 |
|
---|
35 | extern "C" BOOLEAN NTAPI
|
---|
36 | FsRtlCopyRead2(PFILE_OBJECT pFileObject, PLARGE_INTEGER pFileOffset, ULONG cbLength, BOOLEAN fWait,
|
---|
37 | ULONG uLockKey, void *pvBuffer, PIO_STATUS_BLOCK pIoStatus, PDEVICE_OBJECT pDeviceObject, void *pvTopLevelContext)
|
---|
38 | {
|
---|
39 | /** @todo win.arm64: either implement FsRtlCopyRead2 ourselves or find a
|
---|
40 | * library in the WDK the supplies the function. Note that rdbss.sys does not
|
---|
41 | * include this code any more, nor does the x86 or amd64 WDK since Windows 7.
|
---|
42 | *
|
---|
43 | * Alternative reimplement shared folders from scratch without rdbsslib.lib. */
|
---|
44 |
|
---|
45 | RT_NOREF(pFileObject, pFileOffset, cbLength, fWait, uLockKey, pvBuffer, pIoStatus, pDeviceObject, pvTopLevelContext);
|
---|
46 | /* Return false and hope the caller will take the slow IRQL-based code path. */
|
---|
47 | return FALSE;
|
---|
48 | }
|
---|
49 |
|
---|
50 |
|
---|
51 | extern "C" BOOLEAN NTAPI
|
---|
52 | FsRtlCopyWrite2(PFILE_OBJECT pFileObject, PLARGE_INTEGER pFileOffset, ULONG cbLength, BOOLEAN fWait,
|
---|
53 | ULONG uLockKey, void *pvBuffer, PIO_STATUS_BLOCK pIoStatus, PDEVICE_OBJECT pDeviceObject, void *pvTopLevelContext)
|
---|
54 | {
|
---|
55 | /** @todo win.arm64: either implement FsRtlCopyWrite2 ourselves or find a
|
---|
56 | * library in the WDK the supplies the function. Note that rdbss.sys does not
|
---|
57 | * include this code any more, nor does the x86 or amd64 WDK since Windows 7.
|
---|
58 | *
|
---|
59 | * Alternative reimplement shared folders from scratch without rdbsslib.lib. */
|
---|
60 |
|
---|
61 | RT_NOREF(pFileObject, pFileOffset, cbLength, fWait, uLockKey, pvBuffer, pIoStatus, pDeviceObject, pvTopLevelContext);
|
---|
62 | /* Return false and hope the caller will take the slow IRQL-based code path. */
|
---|
63 | return FALSE;
|
---|
64 | }
|
---|
65 |
|
---|