Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d19e2ada
Commit
d19e2ada
authored
Nov 23, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Move creation of the DEVICEMAP registry keys to mountmgr.
parent
e36db94c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+16
-0
wine.inf.in
tools/wine.inf.in
+0
-2
No files found.
dlls/mountmgr.sys/mountmgr.c
View file @
d19e2ada
...
...
@@ -400,10 +400,14 @@ 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
};
static
const
WCHAR
harddiskW
[]
=
{
'\\'
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
'\\'
,
'H'
,
'a'
,
'r'
,
'd'
,
'd'
,
'i'
,
's'
,
'k'
,
0
};
static
const
WCHAR
devicemapW
[]
=
{
'H'
,
'A'
,
'R'
,
'D'
,
'W'
,
'A'
,
'R'
,
'E'
,
'\\'
,
'D'
,
'E'
,
'V'
,
'I'
,
'C'
,
'E'
,
'M'
,
'A'
,
'P'
,
0
};
static
const
WCHAR
parallelW
[]
=
{
'P'
,
'A'
,
'R'
,
'A'
,
'L'
,
'L'
,
'E'
,
'L'
,
' '
,
'P'
,
'O'
,
'R'
,
'T'
,
'S'
,
0
};
static
const
WCHAR
serialW
[]
=
{
'S'
,
'E'
,
'R'
,
'I'
,
'A'
,
'L'
,
'C'
,
'O'
,
'M'
,
'M'
,
0
};
UNICODE_STRING
nameW
,
linkW
;
DEVICE_OBJECT
*
device
;
NTSTATUS
status
;
HKEY
hkey
,
devicemap_key
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
path
->
Buffer
)
);
...
...
@@ -422,6 +426,18 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
mounted_devicesW
,
0
,
NULL
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
mount_key
,
NULL
);
if
(
!
RegCreateKeyExW
(
HKEY_LOCAL_MACHINE
,
devicemapW
,
0
,
NULL
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
devicemap_key
,
NULL
))
{
if
(
!
RegCreateKeyExW
(
devicemap_key
,
parallelW
,
0
,
NULL
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
hkey
,
NULL
))
RegCloseKey
(
hkey
);
if
(
!
RegCreateKeyExW
(
devicemap_key
,
serialW
,
0
,
NULL
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
hkey
,
NULL
))
RegCloseKey
(
hkey
);
RegCloseKey
(
devicemap_key
);
}
RtlInitUnicodeString
(
&
nameW
,
harddiskW
);
status
=
IoCreateDriver
(
&
nameW
,
harddisk_driver_entry
);
...
...
tools/wine.inf.in
View file @
d19e2ada
...
...
@@ -540,8 +540,6 @@ HKLM,System\CurrentControlSet\Control\Session Manager,,,""
HKLM,System\CurrentControlSet\Control\VMM32Files,,,""
HKCU,AppEvents\Schemes\Apps\Explorer\Navigating\.Current,,,""
HKCU,Software\Microsoft\Protected Storage System Provider,,,""
HKLM,HARDWARE\DEVICEMAP\PARALLEL PORTS,,,""
HKLM,HARDWARE\DEVICEMAP\SERIALCOMM,,,""
; Some apps requires at least four subkeys of Active Setup\Installed Components
HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components\{44BBA855-CC51-11CF-AAFA-00AA00B6015F},,2,"DirectDrawEx"
HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components\{44BBA855-CC51-11CF-AAFA-00AA00B6015F},"ComponentID",2,"DirectDrawEx"
...
...
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