From bf431dd2783df30cddf0a91c5e74e359a0bfcd4e Mon Sep 17 00:00:00 2001 From: Jared Smudde Date: Tue, 23 Apr 2019 00:46:28 -0500 Subject: [PATCH] [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 09d144e595e..e357654699a 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 } /*********************************************************************