1 | /** $Id: VBoxSF.cpp 68612 2017-09-03 15:49:33Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxSF - OS/2 Shared Folders, the FS and FSD level IFS EPs
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (c) 2007 knut st. osmundsen <[email protected]>
|
---|
8 | *
|
---|
9 | * Permission is hereby granted, free of charge, to any person
|
---|
10 | * obtaining a copy of this software and associated documentation
|
---|
11 | * files (the "Software"), to deal in the Software without
|
---|
12 | * restriction, including without limitation the rights to use,
|
---|
13 | * copy, modify, merge, publish, distribute, sublicense, and/or sell
|
---|
14 | * copies of the Software, and to permit persons to whom the
|
---|
15 | * Software is furnished to do so, subject to the following
|
---|
16 | * conditions:
|
---|
17 | *
|
---|
18 | * The above copyright notice and this permission notice shall be
|
---|
19 | * included in all copies or substantial portions of the Software.
|
---|
20 | *
|
---|
21 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
---|
22 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
---|
23 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
---|
24 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
---|
25 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
---|
26 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
---|
27 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
---|
28 | * OTHER DEALINGS IN THE SOFTWARE.
|
---|
29 | */
|
---|
30 |
|
---|
31 |
|
---|
32 | /*********************************************************************************************************************************
|
---|
33 | * Header Files *
|
---|
34 | *********************************************************************************************************************************/
|
---|
35 | #define LOG_GROUP LOG_GROUP_DEFAULT
|
---|
36 | #include "VBoxSFInternal.h"
|
---|
37 |
|
---|
38 | #include <VBox/log.h>
|
---|
39 | #include <iprt/assert.h>
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
43 | DECLASM(void)
|
---|
44 | FS32_EXIT(ULONG uid, ULONG pid, ULONG pdb)
|
---|
45 | {
|
---|
46 | NOREF(uid); NOREF(pid); NOREF(pdb);
|
---|
47 | }
|
---|
48 |
|
---|
49 |
|
---|
50 | DECLASM(int)
|
---|
51 | FS32_SHUTDOWN(ULONG type, ULONG reserved)
|
---|
52 | {
|
---|
53 | NOREF(type); NOREF(reserved);
|
---|
54 | return NO_ERROR;
|
---|
55 | }
|
---|
56 |
|
---|
57 |
|
---|
58 | DECLASM(int)
|
---|
59 | FS32_ATTACH(ULONG fFlags, PCSZ pszDev, PVBOXSFVP pvpfsd, PVBOXSFCD pcdfsd, PBYTE pszParm, PUSHORT pcbParm)
|
---|
60 | {
|
---|
61 | NOREF(fFlags); NOREF(pszDev); NOREF(pvpfsd); NOREF(pcdfsd); NOREF(pszParm); NOREF(pcbParm);
|
---|
62 | return ERROR_NOT_SUPPORTED;
|
---|
63 | }
|
---|
64 |
|
---|
65 |
|
---|
66 | DECLASM(int)
|
---|
67 | FS32_FLUSHBUF(USHORT hVPB, ULONG fFlags)
|
---|
68 | {
|
---|
69 | NOREF(hVPB); NOREF(fFlags);
|
---|
70 | return NO_ERROR;
|
---|
71 | }
|
---|
72 |
|
---|
73 |
|
---|
74 | DECLASM(int)
|
---|
75 | FS32_FSINFO(ULONG fFlags, USHORT hVPB, PBYTE pbData, USHORT cbData, ULONG uLevel)
|
---|
76 | {
|
---|
77 | NOREF(fFlags); NOREF(hVPB); NOREF(pbData); NOREF(cbData); NOREF(uLevel);
|
---|
78 | return ERROR_NOT_SUPPORTED;
|
---|
79 | }
|
---|
80 |
|
---|
81 |
|
---|
82 | DECLASM(int)
|
---|
83 | FS32_FSCTL(union argdat *pArgdat, ULONG iArgType, ULONG uFunction,
|
---|
84 | PVOID pvParm, USHORT cbParm, PUSHORT pcbParmIO,
|
---|
85 | PVOID pvData, USHORT cbData, PUSHORT pcbDataIO)
|
---|
86 | {
|
---|
87 | NOREF(pArgdat); NOREF(iArgType); NOREF(uFunction); NOREF(pvParm); NOREF(cbParm); NOREF(pcbParmIO);
|
---|
88 | NOREF(pvData); NOREF(cbData); NOREF(pcbDataIO);
|
---|
89 | return ERROR_NOT_SUPPORTED;
|
---|
90 | }
|
---|
91 |
|
---|
92 |
|
---|
93 | DECLASM(int)
|
---|
94 | FS32_PROCESSNAME(PSZ pszName)
|
---|
95 | {
|
---|
96 | NOREF(pszName);
|
---|
97 | return NO_ERROR;
|
---|
98 | }
|
---|
99 |
|
---|
100 |
|
---|
101 | DECLASM(int)
|
---|
102 | FS32_CHDIR(ULONG fFlags, PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszDir, USHORT iCurDirEnd)
|
---|
103 | {
|
---|
104 | NOREF(fFlags); NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszDir); NOREF(iCurDirEnd);
|
---|
105 | return ERROR_NOT_SUPPORTED;
|
---|
106 | }
|
---|
107 |
|
---|
108 |
|
---|
109 | DECLASM(int)
|
---|
110 | FS32_MKDIR(PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszDir, USHORT iCurDirEnd,
|
---|
111 | PBYTE pbEABuf, ULONG fFlags)
|
---|
112 | {
|
---|
113 | NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszDir); NOREF(iCurDirEnd); NOREF(pbEABuf); NOREF(fFlags);
|
---|
114 | return ERROR_NOT_SUPPORTED;
|
---|
115 | }
|
---|
116 |
|
---|
117 |
|
---|
118 | DECLASM(int)
|
---|
119 | FS32_RMDIR(PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszDir, USHORT iCurDirEnd)
|
---|
120 | {
|
---|
121 | NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszDir); NOREF(iCurDirEnd);
|
---|
122 | return ERROR_NOT_SUPPORTED;
|
---|
123 | }
|
---|
124 |
|
---|
125 |
|
---|
126 | DECLASM(int)
|
---|
127 | FS32_COPY(USHORT fFlags, PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszSrc, USHORT iSrcCurDirEnd,
|
---|
128 | PCSZ pszDst, USHORT iDstCurDirEnd, USHORT uNameType)
|
---|
129 | {
|
---|
130 | NOREF(fFlags); NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszSrc); NOREF(iSrcCurDirEnd);
|
---|
131 | NOREF(pszDst); NOREF(iDstCurDirEnd); NOREF(uNameType);
|
---|
132 | return ERROR_NOT_SUPPORTED;
|
---|
133 | }
|
---|
134 |
|
---|
135 |
|
---|
136 | DECLASM(int)
|
---|
137 | FS32_MOVE(PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszSrc, USHORT iSrcCurDirEnd,
|
---|
138 | PCSZ pszDst, USHORT iDstCurDirEnd, USHORT uNameType)
|
---|
139 | {
|
---|
140 | NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszSrc); NOREF(iSrcCurDirEnd); NOREF(pszDst); NOREF(iDstCurDirEnd); NOREF(uNameType);
|
---|
141 | return ERROR_NOT_SUPPORTED;
|
---|
142 | }
|
---|
143 |
|
---|
144 |
|
---|
145 | DECLASM(int)
|
---|
146 | FS32_DELETE(PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszFile, USHORT iCurDirEnd)
|
---|
147 | {
|
---|
148 | NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszFile); NOREF(iCurDirEnd);
|
---|
149 | return ERROR_NOT_SUPPORTED;
|
---|
150 | }
|
---|
151 |
|
---|
152 |
|
---|
153 | DECLASM(int)
|
---|
154 | FS32_FILEATTRIBUTE(ULONG fFlags, PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszName, USHORT iCurDirEnd, PUSHORT pfAttr)
|
---|
155 | {
|
---|
156 | NOREF(fFlags); NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszName); NOREF(iCurDirEnd); NOREF(pfAttr);
|
---|
157 | return ERROR_NOT_SUPPORTED;
|
---|
158 | }
|
---|
159 |
|
---|
160 |
|
---|
161 | DECLASM(int)
|
---|
162 | FS32_PATHINFO(USHORT fFlags, PCDFSI pcdfsi, PVBOXSFCD pcdfsd, PCSZ pszName, USHORT iCurDirEnd,
|
---|
163 | USHORT uLevel, PBYTE pbData, USHORT cbData)
|
---|
164 | {
|
---|
165 | NOREF(fFlags); NOREF(pcdfsi); NOREF(pcdfsd); NOREF(pszName); NOREF(iCurDirEnd); NOREF(uLevel); NOREF(pbData); NOREF(cbData);
|
---|
166 | return ERROR_NOT_SUPPORTED;
|
---|
167 | }
|
---|
168 |
|
---|
169 |
|
---|
170 | DECLASM(int)
|
---|
171 | FS32_MOUNT(USHORT fFlags, PVPFSI pvpfsi, PVBOXSFVP pvpfsd, USHORT hVPB, PCSZ pszBoot)
|
---|
172 | {
|
---|
173 | NOREF(fFlags); NOREF(pvpfsi); NOREF(pvpfsd); NOREF(hVPB); NOREF(pszBoot);
|
---|
174 | return ERROR_NOT_SUPPORTED;
|
---|
175 | }
|
---|
176 |
|
---|