Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
3d2c5e41
Commit
3d2c5e41
authored
Aug 31, 2013
by
Jondy Zhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove connection name from registry when remove tap-window driver
parent
e732f14e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
windows/ipwin/ipwin/netcfg.cpp
windows/ipwin/ipwin/netcfg.cpp
+26
-1
No files found.
windows/ipwin/ipwin/netcfg.cpp
View file @
3d2c5e41
...
...
@@ -143,6 +143,28 @@ static HMODULE loadSystemDll(const char *pszName)
return
LoadLibraryA
(
szPath
);
}
static
void
removeConnectionRegistry
(
LPCSTR
pGUID
)
{
HKEY
hkeyNetwork
;
LONG
status
;
status
=
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
L"SYSTEM
\\
CurrentControlSet
\\
Control
\\
Network
\\
{4D36E972-E325-11CE-BFC1-08002BE10318}"
,
0
,
DELETE
|
KEY_ENUMERATE_SUB_KEYS
|
KEY_QUERY_VALUE
,
&
hkeyNetwork
);
if
((
status
!=
ERROR_SUCCESS
)
||
!
hkeyNetwork
)
{
NonStandardLogFlow
((
"Open connection registry failed
\n
"
));
return
;
}
if
(
RegDeleteTreeA
(
hkeyNetwork
,
pGUID
)
!=
ERROR_SUCCESS
)
NonStandardLogFlow
((
"Remove connection %s failed
\n
"
,
pGUID
));
RegCloseKey
(
hkeyNetwork
);
}
static
HRESULT
SlaposNetCfgWinINetCfgLock
(
IN
INetCfg
*
pNetCfg
,
IN
LPCWSTR
pszwClientDescription
,
IN
DWORD
cmsTimeout
,
...
...
@@ -1204,6 +1226,9 @@ HRESULT SlaposNetCfgWinRemoveNetworkInterface(IN LPCWSTR pHwid,
}
while
(
0
);
/* Remove connection registry */
removeConnectionRegistry
(
pGUID
);
return
hrc
;
}
...
...
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