ReactOS 0.4.15-dev-7842-g558ab78
netshell.cpp File Reference
#include "precomp.h"
Include dependency graph for netshell.cpp:

Go to the source code of this file.

Classes

class  CNetshellModule
 

Functions

HPROPSHEETPAGE InitializePropertySheetPage (LPWSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
 
HRESULT WINAPI DllCanUnloadNow (void)
 
STDAPI DllRegisterServer (void)
 
STDAPI DllUnregisterServer (void)
 
STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
 
VOID WINAPI NcFreeNetconProperties (NETCON_PROPERTIES *pProps)
 
BOOL WINAPI NcIsValidConnectionName (_In_ PCWSTR pszwName)
 

Variables

HMODULE g_hModule = NULL
 
HINSTANCE netshell_hInstance
 
CNetshellModule gModule
 

Function Documentation

◆ DllCanUnloadNow()

HRESULT WINAPI DllCanUnloadNow ( void  )

Definition at line 71 of file netshell.cpp.

72{
73 return S_FALSE;
74}
#define S_FALSE
Definition: winerror.h:2357

◆ DllGetClassObject()

STDAPI DllGetClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID ppv 
)

Definition at line 109 of file netshell.cpp.

113{
114 return gModule.DllGetClassObject(rclsid, riid, ppv);
115}
HRESULT DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
Definition: atlbase.h:1037
REFIID riid
Definition: atlbase.h:39
REFIID LPVOID * ppv
Definition: atlbase.h:39
CNetshellModule gModule
Definition: netshell.cpp:26

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  fImpLoad 
)

Definition at line 53 of file netshell.cpp.

54{
55 switch (fdwReason)
56 {
58 netshell_hInstance = hinstDLL;
61 break;
62 default:
63 break;
64 }
65
66 return TRUE;
67}
HRESULT Init(_ATL_OBJMAP_ENTRY *p, HINSTANCE, const GUID *plibid)
Definition: atlbase.h:886
#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
HINSTANCE netshell_hInstance
Definition: netshell.cpp:12

◆ DllRegisterServer()

STDAPI DllRegisterServer ( void  )

Definition at line 77 of file netshell.cpp.

78{
79 HRESULT hr;
80
83 return hr;
84
87 return hr;
88
89 return S_OK;
90}
HRESULT WINAPI UpdateRegistryFromResource(LPCTSTR lpszRes, BOOL bRegister, struct _ATL_REGMAP_ENTRY *pMapEntries=NULL)
Definition: atlbase.h:489
HRESULT DllRegisterServer(BOOL bRegTypeLib=TRUE)
Definition: atlbase.h:1042
#define FALSE
Definition: types.h:117
#define IDR_NETSHELL
Definition: resource.h:127
#define FAILED_UNEXPECTEDLY(hr)
Definition: precomp.h:121
#define S_OK
Definition: intsafe.h:52
HRESULT hr
Definition: shlfolder.c:183

◆ DllUnregisterServer()

STDAPI DllUnregisterServer ( void  )

Definition at line 93 of file netshell.cpp.

94{
95 HRESULT hr;
96
99 return hr;
100
103 return hr;
104
105 return S_OK;
106}
HRESULT DllUnregisterServer(BOOL bUnRegTypeLib=TRUE)
Definition: atlbase.h:1047

◆ InitializePropertySheetPage()

HPROPSHEETPAGE InitializePropertySheetPage ( LPWSTR  resname,
DLGPROC  dlgproc,
LPARAM  lParam,
LPWSTR  szTitle 
)

Definition at line 29 of file netshell.cpp.

30{
31 PROPSHEETPAGEW ppage;
32
33 memset(&ppage, 0x0, sizeof(PROPSHEETPAGEW));
34 ppage.dwSize = sizeof(PROPSHEETPAGEW);
35 ppage.dwFlags = PSP_DEFAULT;
36 ppage.pszTemplate = resname;
37 ppage.pfnDlgProc = dlgproc;
38 ppage.lParam = lParam;
40 if (szTitle)
41 {
42 ppage.dwFlags |= PSP_USETITLE;
43 ppage.pszTitle = szTitle;
44 }
45 return CreatePropertySheetPageW(&ppage);
46}
LPARAM lParam
Definition: combotst.c:139
HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW lpPropSheetPage)
Definition: propsheet.c:3083
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
#define PSP_USETITLE
Definition: prsht.h:26
#define PSP_DEFAULT
Definition: prsht.h:22
struct _PROPSHEETPAGEW PROPSHEETPAGEW
#define memset(x, y, z)
Definition: compat.h:39
DLGPROC pfnDlgProc
Definition: prsht.h:226
DWORD dwSize
Definition: prsht.h:214
DWORD dwFlags
Definition: prsht.h:215
LPARAM lParam
Definition: prsht.h:227
LPCWSTR pszTemplate
Definition: prsht.h:218
LPCWSTR pszTitle
Definition: prsht.h:225
HINSTANCE hInstance
Definition: prsht.h:216

Referenced by CNetConnectionPropertyUi::AddPages(), and ShowStatusPropertyDialog().

◆ NcFreeNetconProperties()

◆ NcIsValidConnectionName()

BOOL WINAPI NcIsValidConnectionName ( _In_ PCWSTR  pszwName)

Definition at line 128 of file netshell.cpp.

129{
130 if (!pszwName)
131 return FALSE;
132
133 BOOL nonSpace = FALSE;
134 while (*pszwName)
135 {
136 switch(*(pszwName++))
137 {
138 case L'\\':
139 case L'/':
140 case L':':
141 case L'*':
142 case L'\t':
143 case L'?':
144 case L'<':
145 case L'>':
146 case L'|':
147 case L'\"':
148 return FALSE;
149 case L' ':
150 break;
151 default:
152 nonSpace = TRUE;
153 break;
154 }
155 }
156 return nonSpace;
157}
unsigned int BOOL
Definition: ntddk_ex.h:94
#define L(x)
Definition: ntvdm.h:50

Variable Documentation

◆ g_hModule

HMODULE g_hModule = NULL

Definition at line 10 of file netshell.cpp.

◆ gModule

CNetshellModule gModule

Definition at line 26 of file netshell.cpp.

Referenced by DllGetClassObject(), DllMain(), DllRegisterServer(), and DllUnregisterServer().

◆ netshell_hInstance