#include <stdio.h>
#include <windef.h>
#include <winbase.h>
#include <wingdi.h>
#include <wincon.h>
#include <winreg.h>
#include <winnls.h>
#include <shlwapi.h>
#include <shlobj.h>
#include <shellapi.h>
#include <atlbase.h>
#include <atlcom.h>
#include <atlcoll.h>
#include <atlstr.h>
#include <iphlpapi.h>
#include <setupapi.h>
#include <devguid.h>
#include <netcon.h>
#include <shlguid_undoc.h>
#include <prsht.h>
#include <undocshell.h>
#include <shellutils.h>
#include <netcfgx.h>
#include <netcfgn.h>
#include <strsafe.h>
#include <wine/debug.h>
#include "resource.h"
#include <pshpack1.h>
#include <poppack.h>
#include "connectmanager.h"
#include "lanconnectui.h"
#include "lanstatusui.h"
#include "shfldr_netconnect.h"
Go to the source code of this file.
|
| WINE_DEFAULT_DEBUG_CHANNEL (shell) |
|
| C_ASSERT (2+FIELD_OFFSET(NETCONIDSTRUCT, clsidThisObject)==2+(2+8)) |
|
| C_ASSERT (2+FIELD_OFFSET(NETCONIDSTRUCT, guidId)==2+(2+8+16)) |
|
| C_ASSERT (2+FIELD_OFFSET(NETCONIDSTRUCT, dwCharacter)==2+(2+8+32)) |
|
| C_ASSERT (2+FIELD_OFFSET(NETCONIDSTRUCT, MediaType)==2+(2+8+36)) |
|
PNETCONIDSTRUCT | ILGetConnData (PCITEMID_CHILD pidl) |
|
PWCHAR | ILGetConnName (PCITEMID_CHILD pidl) |
|
PWCHAR | ILGetDeviceName (PCITEMID_CHILD pidl) |
|
PITEMID_CHILD | ILCreateNetConnectItem (INetConnection *pItem) |
|
HRESULT | ILGetConnection (PCITEMID_CHILD pidl, INetConnection **pItem) |
|
HRESULT | CEnumIDList_CreateInstance (HWND hwndOwner, DWORD dwFlags, REFIID riid, LPVOID *ppv) |
|
HPROPSHEETPAGE | InitializePropertySheetPage (LPWSTR resname, DLGPROC dlgproc, LPARAM lParam, LPWSTR szTitle) |
|
◆ _INC_WINDOWS
◆ COM_NO_WINDOWS_H
◆ NCCF_NOTIFY_DISCONNECTED
#define NCCF_NOTIFY_DISCONNECTED 0x100000 |
◆ NCF_FILTER
◆ NCF_HAS_UI
◆ NCF_HIDDEN
◆ NCF_MULTIPORT_INSTANCED_ADAPTER
#define NCF_MULTIPORT_INSTANCED_ADAPTER 0x40 |
◆ NCF_NDIS_PROTOCOL
#define NCF_NDIS_PROTOCOL 0x4000 |
◆ NCF_NO_SERVICE
◆ NCF_NOT_USER_REMOVABLE
#define NCF_NOT_USER_REMOVABLE 0x20 |
◆ NCF_PHYSICAL
◆ NCF_SOFTWARE_ENUMERATED
#define NCF_SOFTWARE_ENUMERATED 0x2 |
◆ NCF_VIRTUAL
◆ NETCONIDSTRUCT_SIG
#define NETCONIDSTRUCT_SIG 0x4EFF |
◆ USE_CUSTOM_CONMGR
◆ WIN32_NO_STATUS
◆ NETCONIDSTRUCT
◆ PNETCONIDSTRUCT
◆ C_ASSERT() [1/4]
C_ASSERT |
( |
2+ |
FIELD_OFFSETNETCONIDSTRUCT, clsidThisObject = =2+(2+8) | ) |
|
◆ C_ASSERT() [2/4]
C_ASSERT |
( |
2+ |
FIELD_OFFSETNETCONIDSTRUCT, dwCharacter = =2+(2+8+32) | ) |
|
◆ C_ASSERT() [3/4]
C_ASSERT |
( |
2+ |
FIELD_OFFSETNETCONIDSTRUCT, guidId = =2+(2+8+16) | ) |
|
◆ C_ASSERT() [4/4]
C_ASSERT |
( |
2+ |
FIELD_OFFSETNETCONIDSTRUCT, MediaType = =2+(2+8+36) | ) |
|
◆ CEnumIDList_CreateInstance()
◆ ILCreateNetConnectItem()
Definition at line 37 of file enumlist.cpp.
38{
44
47
52
53
55 if (!pidl)
59
60
70
73
76
77
81
82 return pidl;
83}
#define NETCONIDSTRUCT_SIG
struct tagNETCONIDSTRUCT NETCONIDSTRUCT
struct tagNETCONIDSTRUCT * PNETCONIDSTRUCT
static const WCHAR Signature[]
LPVOID WINAPI SHAlloc(SIZE_T len)
PWCHAR ILGetDeviceName(PCITEMID_CHILD pidl)
PNETCONIDSTRUCT ILGetConnData(PCITEMID_CHILD pidl)
PWCHAR ILGetConnName(PCITEMID_CHILD pidl)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
HRESULT GetProperties([out] NETCON_PROPERTIES **ppProps)
VOID WINAPI NcFreeNetconProperties(NETCON_PROPERTIES *pProps)
_CRTIMP wchar_t *__cdecl wcscpy(_Out_writes_z_(_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
ITEMIDLIST UNALIGNED * LPITEMIDLIST
NETCON_MEDIATYPE MediaType
NETCON_MEDIATYPE MediaType
Referenced by CEnumIDList::Initialize(), and CNetworkConnections::SetNameOf().
◆ ILGetConnData()
Definition at line 10 of file enumlist.cpp.
11{
13 {
17 }
19}
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Referenced by CNetworkConnections::CompareIDs(), CNetworkConnections::Execute(), CNetworkConnections::GetAttributesOf(), CNetworkConnections::GetDetailsOf(), CNetConUiObject::GetIconLocation(), ILCreateNetConnectItem(), ILGetConnection(), ILGetConnName(), ILGetDeviceName(), CNetConUiObject::QueryContextMenu(), and ShowNetConnectionStatus().
◆ ILGetConnection()
Definition at line 85 of file enumlist.cpp.
86{
93
97
98
102
106
108 {
109 hr = pEnumCon->Next(1, &INetCon, &
Count);
112
113 hr = INetCon->GetProperties(&pProperties);
115 continue;
116
118
120
121 if (bSame)
122 {
123 *pItem = INetCon.
Detach();
125 }
126 }
127
129}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
HRESULT WINAPI CNetConnectionManager_CreateInstance(REFIID riid, LPVOID *ppv)
#define FAILED_UNEXPECTEDLY(hr)
static PROTOCOLDATA * pdata
#define IID_PPV_ARG(Itype, ppType)
Referenced by CNetConUiObject::InvokeCommand(), and CNetworkConnections::SetNameOf().
◆ ILGetConnName()
◆ ILGetDeviceName()
◆ InitializePropertySheetPage()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
shell |
| ) |
|
◆ netshell_hInstance
Definition at line 12 of file netshell.cpp.
Referenced by _InsertMenuItemW(), DllMain(), CNetworkConnections::GetDetailsOf(), CNetworkConnections::GetDisplayNameOf(), CNetConUiObject::GetIconLocation(), InitializeLANStatusUiDlg(), CLanStatus::InitializeNetTaskbarNotifications(), InitializePropertySheetPage(), InsertColumnToListView(), InsertItemToListView(), LANStatusUiAdvancedDlg(), NetSetupRequestWizardPages(), NetworkDomainPageDlgProc(), PropSheetProc(), ShowNetConnectionProperties(), ShowStatusPropertyDialog(), UpdateLanStatus(), and UpdateLanStatusUiDlg().