https://git.reactos.org/?p=reactos.git;a=commitdiff;h=bf431dd2783df30cddf0a…
commit bf431dd2783df30cddf0a91c5e74e359a0bfcd4e
Author: Jared Smudde <computerwhiz02(a)hotmail.com>
AuthorDate: Tue Apr 23 00:46:28 2019 -0500
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Wed Apr 24 04:28:01 2019 +0200
[MPR] Implement the function WNetDisconnectDialog(). (#1522)
CORE-13516, CORE-13518
---
dll/win32/mpr/wnet.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dll/win32/mpr/wnet.c b/dll/win32/mpr/wnet.c
index 09d144e595..e357654699 100644
--- a/dll/win32/mpr/wnet.c
+++ b/dll/win32/mpr/wnet.c
@@ -2812,10 +2812,22 @@ DWORD WINAPI WNetConnectionDialog1W( LPCONNECTDLGSTRUCTW
lpConnDlgStruct )
*/
DWORD WINAPI WNetDisconnectDialog( HWND hwnd, DWORD dwType )
{
+#ifdef __REACTOS__
+ DWORD dwRet;
+ HMODULE hDll = LoadLibraryW(L"netplwiz.dll");
+ static BOOL (WINAPI *pSHDisconnectNetDrives)(PVOID);
+ pSHDisconnectNetDrives = (VOID *) GetProcAddress(hDll,
"SHDisconnectNetDrives");
+
+ dwRet = pSHDisconnectNetDrives(NULL);
+
+ FreeLibrary(hDll);
+ return dwRet;
+#else
FIXME( "(%p, %08X): stub\n", hwnd, dwType );
SetLastError(WN_NO_NETWORK);
return WN_NO_NETWORK;
+#endif
}
/*********************************************************************