[NETPLWIZ] Implement the Disconnect Network Drive dialog. (#1522)
[reactos.git] / dll / shellext / netplwiz / netplwiz.c
1 /*
2 * PROJECT: ReactOS Shell
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Implements the Connect/Disconnect Network places dialogs
5 * COPYRIGHT: Copyright 2018 Jared Smudde (computerwhiz02@hotmail.com)
6 */
7
8 #include "netplwiz.h"
9
10 HRESULT WINAPI
11 DllCanUnloadNow(VOID)
12 {
13 return S_OK;
14 }
15
16 HRESULT WINAPI
17 DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
18 {
19 *ppv = NULL;
20 return E_NOINTERFACE;
21 }
22
23 HRESULT WINAPI
24 DllRegisterServer(VOID)
25 {
26 return S_OK;
27 }
28
29 HRESULT WINAPI
30 DllUnregisterServer(VOID)
31 {
32 return S_OK;
33 }
34
35 BOOL WINAPI
36 DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
37 {
38 INITCOMMONCONTROLSEX iccx;
39 hInstance = hinstDLL;
40 switch (dwReason)
41 {
42 case DLL_PROCESS_ATTACH:
43 iccx.dwSize = sizeof(INITCOMMONCONTROLSEX);
44 iccx.dwICC = ICC_STANDARD_CLASSES | ICC_LISTVIEW_CLASSES;
45 InitCommonControlsEx(&iccx);
46 DisableThreadLibraryCalls(hInstance);
47 break;
48 }
49
50 return TRUE;
51 }