Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
43dc80e6
Commit
43dc80e6
authored
Jan 04, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Added initial stub for the mount point manager device.
parent
79c0bc28
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
108 additions
and
0 deletions
+108
-0
Makefile.in
Makefile.in
+2
-0
configure
configure
+3
-0
configure.ac
configure.ac
+1
-0
Makefile.in
dlls/Makefile.in
+1
-0
Makefile.in
dlls/mountmgr.sys/Makefile.in
+14
-0
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+86
-0
mountmgr.sys.spec
dlls/mountmgr.sys/mountmgr.sys.spec
+1
-0
No files found.
Makefile.in
View file @
43dc80e6
...
...
@@ -288,6 +288,7 @@ ALL_MAKEFILES = \
dlls/mlang/tests/Makefile
\
dlls/mmdevldr.vxd/Makefile
\
dlls/monodebg.vxd/Makefile
\
dlls/mountmgr.sys/Makefile
\
dlls/mpr/Makefile
\
dlls/mprapi/Makefile
\
dlls/msacm32.drv/Makefile
\
...
...
@@ -672,6 +673,7 @@ dlls/mlang/Makefile: dlls/mlang/Makefile.in dlls/Makedll.rules
dlls/mlang/tests/Makefile
:
dlls/mlang/tests/Makefile.in dlls/Maketest.rules
dlls/mmdevldr.vxd/Makefile
:
dlls/mmdevldr.vxd/Makefile.in dlls/Makedll.rules
dlls/monodebg.vxd/Makefile
:
dlls/monodebg.vxd/Makefile.in dlls/Makedll.rules
dlls/mountmgr.sys/Makefile
:
dlls/mountmgr.sys/Makefile.in dlls/Makedll.rules
dlls/mpr/Makefile
:
dlls/mpr/Makefile.in dlls/Makedll.rules
dlls/mprapi/Makefile
:
dlls/mprapi/Makefile.in dlls/Makedll.rules
dlls/msacm32.drv/Makefile
:
dlls/msacm32.drv/Makefile.in dlls/Makedll.rules
...
...
configure
View file @
43dc80e6
...
...
@@ -20868,6 +20868,8 @@ ac_config_files="$ac_config_files dlls/mmdevldr.vxd/Makefile"
ac_config_files
=
"
$ac_config_files
dlls/monodebg.vxd/Makefile"
ac_config_files
=
"
$ac_config_files
dlls/mountmgr.sys/Makefile"
ac_config_files
=
"
$ac_config_files
dlls/mpr/Makefile"
ac_config_files
=
"
$ac_config_files
dlls/mprapi/Makefile"
...
...
@@ -22042,6 +22044,7 @@ do
"dlls/mlang/tests/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/mlang/tests/Makefile" ;;
"dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/mmdevldr.vxd/Makefile" ;;
"dlls/monodebg.vxd/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/monodebg.vxd/Makefile" ;;
"dlls/mountmgr.sys/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/mountmgr.sys/Makefile" ;;
"dlls/mpr/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/mpr/Makefile" ;;
"dlls/mprapi/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/mprapi/Makefile" ;;
"dlls/msacm32.drv/Makefile") CONFIG_FILES="
$CONFIG_FILES
dlls/msacm32.drv/Makefile" ;;
...
...
configure.ac
View file @
43dc80e6
...
...
@@ -1714,6 +1714,7 @@ AC_CONFIG_FILES([dlls/mlang/Makefile])
AC_CONFIG_FILES([dlls/mlang/tests/Makefile])
AC_CONFIG_FILES([dlls/mmdevldr.vxd/Makefile])
AC_CONFIG_FILES([dlls/monodebg.vxd/Makefile])
AC_CONFIG_FILES([dlls/mountmgr.sys/Makefile])
AC_CONFIG_FILES([dlls/mpr/Makefile])
AC_CONFIG_FILES([dlls/mprapi/Makefile])
AC_CONFIG_FILES([dlls/msacm32.drv/Makefile])
...
...
dlls/Makefile.in
View file @
43dc80e6
...
...
@@ -110,6 +110,7 @@ BASEDIRS = \
mlang
\
mmdevldr.vxd
\
monodebg.vxd
\
mountmgr.sys
\
mpr
\
mprapi
\
msacm32
\
...
...
dlls/mountmgr.sys/Makefile.in
0 → 100644
View file @
43dc80e6
TOPSRCDIR
=
@top_srcdir@
TOPOBJDIR
=
../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
mountmgr.sys
IMPORTS
=
advapi32 ntoskrnl.exe kernel32 ntdll
EXTRADLLFLAGS
=
-Wb
,--subsystem,native
C_SRCS
=
\
mountmgr.c
@MAKE_DLL_RULES@
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/mountmgr.sys/mountmgr.c
0 → 100644
View file @
43dc80e6
/*
* Mount manager service implementation
*
* Copyright 2008 Alexandre Julliard
*
* 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
*/
#include <stdarg.h>
#include <unistd.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 "ddk/wdm.h"
#include "ddk/mountmgr.h"
#include "wine/library.h"
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
mountmgr
);
/* handler for ioctls on the mount manager device */
static
NTSTATUS
WINAPI
mountmgr_ioctl
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
{
IO_STACK_LOCATION
*
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
;
TRACE
(
"ioctl %x insize %u outsize %u
\n
"
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
,
irpsp
->
Parameters
.
DeviceIoControl
.
InputBufferLength
,
irpsp
->
Parameters
.
DeviceIoControl
.
OutputBufferLength
);
switch
(
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
)
{
default:
FIXME
(
"ioctl %x not supported
\n
"
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
);
irp
->
IoStatus
.
u
.
Status
=
STATUS_NOT_SUPPORTED
;
break
;
}
return
irp
->
IoStatus
.
u
.
Status
;
}
/* main entry point for the mount point manager driver */
NTSTATUS
WINAPI
DriverEntry
(
DRIVER_OBJECT
*
driver
,
UNICODE_STRING
*
path
)
{
static
const
WCHAR
device_mountmgrW
[]
=
{
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'\\'
,
'M'
,
'o'
,
'u'
,
'n'
,
't'
,
'P'
,
'o'
,
'i'
,
'n'
,
't'
,
'M'
,
'a'
,
'n'
,
'a'
,
'g'
,
'e'
,
'r'
,
0
};
static
const
WCHAR
link_mountmgrW
[]
=
{
'\\'
,
'?'
,
'?'
,
'\\'
,
'M'
,
'o'
,
'u'
,
'n'
,
't'
,
'P'
,
'o'
,
'i'
,
'n'
,
't'
,
'M'
,
'a'
,
'n'
,
'a'
,
'g'
,
'e'
,
'r'
,
0
};
UNICODE_STRING
nameW
,
linkW
;
DEVICE_OBJECT
*
device
;
NTSTATUS
status
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
path
->
Buffer
)
);
driver
->
MajorFunction
[
IRP_MJ_DEVICE_CONTROL
]
=
mountmgr_ioctl
;
RtlInitUnicodeString
(
&
nameW
,
device_mountmgrW
);
RtlInitUnicodeString
(
&
linkW
,
link_mountmgrW
);
if
(
!
(
status
=
IoCreateDevice
(
driver
,
0
,
&
nameW
,
0
,
0
,
FALSE
,
&
device
)))
status
=
IoCreateSymbolicLink
(
&
linkW
,
&
nameW
);
if
(
status
)
{
FIXME
(
"failed to create device error %x
\n
"
,
status
);
return
status
;
}
return
status
;
}
dlls/mountmgr.sys/mountmgr.sys.spec
0 → 100644
View file @
43dc80e6
# nothing to export
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment