From 26192671700360859cd8a0133dabcd96ec1a786b Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 2 Jul 2017 11:52:59 +0200 Subject: [PATCH] mpr: Implement WNetConnectionDialog(). Signed-off-by: Pierre Schweitzer Signed-off-by: Alexandre Julliard --- dlls/mpr/wnet.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dlls/mpr/wnet.c b/dlls/mpr/wnet.c index bfe6275fc15..7b24693e0e8 100644 --- a/dlls/mpr/wnet.c +++ b/dlls/mpr/wnet.c @@ -2440,10 +2440,18 @@ DWORD WINAPI WNetGetUserW( LPCWSTR lpName, LPWSTR lpUserID, LPDWORD lpBufferSize */ DWORD WINAPI WNetConnectionDialog( HWND hwnd, DWORD dwType ) { - FIXME( "(%p, %08X): stub\n", hwnd, dwType ); + CONNECTDLGSTRUCTW conn_dlg; + NETRESOURCEW net_res; - SetLastError(WN_NO_NETWORK); - return WN_NO_NETWORK; + ZeroMemory(&conn_dlg, sizeof(conn_dlg)); + ZeroMemory(&net_res, sizeof(net_res)); + + conn_dlg.cbStructure = sizeof(conn_dlg); + conn_dlg.lpConnRes = &net_res; + conn_dlg.hwndOwner = hwnd; + net_res.dwType = dwType; + + return WNetConnectionDialog1W(&conn_dlg); } /*********************************************************************