ReactOS 0.4.17-dev-1005-g171e1de
netplwiz.c
Go to the documentation of this file.
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
12{
13 return S_OK;
14}
15
18{
19 *ppv = NULL;
20 return E_NOINTERFACE;
21}
22
25{
26 return S_OK;
27}
28
31{
32 return S_OK;
33}
34
37{
39 hInstance = hinstDLL;
40 switch (dwReason)
41 {
43 iccx.dwSize = sizeof(INITCOMMONCONTROLSEX);
47 break;
48 }
49
50 return TRUE;
51}
52
53int WINAPI
55{
56 /* TODO */
57 return 0;
58}
59
60void WINAPI
61UsersRunDllW(HWND hWnd, HINSTANCE hInstance, LPWSTR pszCmdLine, int nCmdShow)
62{
63 /* FIXME: The dialog is supposed to be implemented in this DLL (CORE-20775) */
64
66 sei.lpFile = L"%SystemRoot%\\system32\\control.exe";
67 sei.lpParameters = L"userpasswords";
69 ShellExecuteExW(&sei);
70}
71
72#if (DLL_EXPORT_VERSION < _WIN32_WINNT_VISTA)
73void WINAPI
74UsersRunDll(HWND hWnd, HINSTANCE hInstance, LPSTR pszCmdLine, int nCmdShow)
75{
76 UsersRunDllW(hWnd, hInstance, L"", nCmdShow);
77}
78#endif
HWND hWnd
Definition: settings.c:17
DWORD dwReason
Definition: misc.cpp:135
HINSTANCE hInstance
Definition: charmap.c:19
BOOL WINAPI InitCommonControlsEx(const INITCOMMONCONTROLSEX *lpInitCtrls)
Definition: commctrl.c:904
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
BOOL WINAPI DisableThreadLibraryCalls(IN HMODULE hLibModule)
Definition: loader.c:85
#define L(x)
Definition: resources.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
static IN DWORD IN LPVOID lpvReserved
HRESULT WINAPI DllRegisterServer(void)
Definition: msctf.cpp:586
HRESULT WINAPI DllUnregisterServer(void)
Definition: msctf.cpp:594
HRESULT WINAPI DllCanUnloadNow(void)
Definition: msctf.cpp:558
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
Definition: netplwiz.c:36
HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition: netplwiz.c:17
int WINAPI ClearAutoLogon(VOID)
Definition: netplwiz.c:54
void WINAPI UsersRunDllW(HWND hWnd, HINSTANCE hInstance, LPWSTR pszCmdLine, int nCmdShow)
Definition: netplwiz.c:61
struct tagINITCOMMONCONTROLSEX INITCOMMONCONTROLSEX
#define ICC_STANDARD_CLASSES
Definition: commctrl.h:73
#define ICC_LISTVIEW_CLASSES
Definition: commctrl.h:58
#define REFIID
Definition: guiddef.h:118
#define REFCLSID
Definition: guiddef.h:117
#define SW_SHOWDEFAULT
Definition: winuser.h:791
#define SEE_MASK_DOENVSUBST
Definition: shellapi.h:37
#define SEE_MASK_FLAG_DDEWAIT
Definition: shellapi.h:36
BOOL WINAPI DECLSPEC_HOTPATCH ShellExecuteExW(LPSHELLEXECUTEINFOW sei)
Definition: shlexec.cpp:2732
LPCWSTR lpParameters
Definition: shellapi.h:339
uint16_t * LPWSTR
Definition: typedefs.h:56
char * LPSTR
Definition: typedefs.h:51
#define WINAPI
Definition: msvc.h:6
#define E_NOINTERFACE
Definition: winerror.h:3479