mirror of
https://github.com/reactos/reactos.git
synced 2025-06-15 00:10:01 +00:00
[MPR] Implement the function WNetDisconnectDialog(). (#1522)
CORE-13516, CORE-13518
This commit is contained in:
parent
d1404a7a2a
commit
bf431dd278
1 changed files with 12 additions and 0 deletions
|
@ -2812,10 +2812,22 @@ DWORD WINAPI WNetConnectionDialog1W( LPCONNECTDLGSTRUCTW lpConnDlgStruct )
|
||||||
*/
|
*/
|
||||||
DWORD WINAPI WNetDisconnectDialog( HWND hwnd, DWORD dwType )
|
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 );
|
FIXME( "(%p, %08X): stub\n", hwnd, dwType );
|
||||||
|
|
||||||
SetLastError(WN_NO_NETWORK);
|
SetLastError(WN_NO_NETWORK);
|
||||||
return WN_NO_NETWORK;
|
return WN_NO_NETWORK;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue