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
f36690d4
Commit
f36690d4
authored
Oct 21, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Create devices and symlinks for dynamic drives too.
parent
7033120f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
device.c
dlls/mountmgr.sys/device.c
+0
-0
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+11
-0
mountmgr.h
dlls/mountmgr.sys/mountmgr.h
+1
-0
No files found.
dlls/mountmgr.sys/device.c
View file @
f36690d4
This diff is collapsed.
Click to expand it.
dlls/mountmgr.sys/mountmgr.c
View file @
f36690d4
...
...
@@ -120,6 +120,17 @@ struct mount_point *add_volume_mount_point( DEVICE_OBJECT *device, UNICODE_STRIN
return
add_mount_point
(
device
,
device_name
,
link
,
id
,
id_len
);
}
/* delete the mount point symlinks when a device goes away */
void
delete_mount_point
(
struct
mount_point
*
mount
)
{
TRACE
(
"deleting %s
\n
"
,
debugstr_w
(
mount
->
link
.
Buffer
)
);
list_remove
(
&
mount
->
entry
);
RegDeleteValueW
(
mount_key
,
mount
->
link
.
Buffer
);
IoDeleteSymbolicLink
(
&
mount
->
link
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
mount
->
id
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
mount
);
}
/* check if a given mount point matches the requested specs */
static
BOOL
matching_mount_point
(
const
struct
mount_point
*
mount
,
const
MOUNTMGR_MOUNT_POINT
*
spec
)
{
...
...
dlls/mountmgr.sys/mountmgr.h
View file @
f36690d4
...
...
@@ -51,4 +51,5 @@ extern struct mount_point *add_dosdev_mount_point( DEVICE_OBJECT *device, UNICOD
int
drive
,
const
void
*
id
,
unsigned
int
id_len
);
extern
struct
mount_point
*
add_volume_mount_point
(
DEVICE_OBJECT
*
device
,
UNICODE_STRING
*
device_name
,
int
drive
,
const
void
*
id
,
unsigned
int
id_len
);
extern
void
delete_mount_point
(
struct
mount_point
*
mount
);
extern
void
set_mount_point_id
(
struct
mount_point
*
mount
,
const
void
*
id
,
unsigned
int
id_len
);
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