11#define MAX_PROPERTY_SHEET_PAGE (10)
26#define NETCONNECTSHELLVIEWCOLUMNS 6
30#define COLUMN_STATUS 2
31#define COLUMN_DEVNAME 3
140 CSFV cvf = {
sizeof(cvf),
this};
146 return pShellView->QueryInterface(
riid, ppvOut);
161 static const DWORD dwNetConnectAttributes = SFGAO_STORAGE | SFGAO_HASPROPSHEET | SFGAO_STORAGEANCESTOR |
162 SFGAO_FILESYSANCESTOR | SFGAO_FOLDER | SFGAO_FILESYSTEM | SFGAO_HASSUBFOLDER | SFGAO_CANRENAME | SFGAO_CANDELETE;
164 static const DWORD dwNetConnectItemAttributes = SFGAO_HASPROPSHEET | SFGAO_STORAGEANCESTOR |
165 SFGAO_FILESYSANCESTOR | SFGAO_CANRENAME;
177 *rgfInOut &= ~SFGAO_HASPROPSHEET;
181 *rgfInOut = dwNetConnectAttributes;
185 *rgfInOut = dwNetConnectItemAttributes;
187 while (cidl > 0 && *apidl)
194 *rgfInOut &= ~SFGAO_CANRENAME;
202 *rgfInOut &= ~SFGAO_VALIDATE;
235 return ShellObjectCreatorInit<CNetConUiObject>(apidl[0],
m_lpOleCmd,
riid, ppvOut);
259 ERR(
"Got invalid pidl\n");
263 return SHSetStrRet(strRet, pwchName);
296 if (*pPidlOut ==
NULL)
363 return SHSetStrRet(&psd->
str,
"");
367 switch(
pdata->Status)
380 return SHSetStrRet(&psd->
str,
"");
387 return SHSetStrRet(&psd->
str,
"");
446 szText[(
sizeof(szText)/
sizeof(
WCHAR))-1] = 0;
479 ERR(
"Got invalid pidl\n");
548 ERR(
"Got invalid pidl\n");
552 return lpOleCmd->
Exec(&
pdata->guidId, OLECMDID_NEW, OLECMDEXECOPT_DODEFAULT,
NULL,
NULL);
601 hr = pNCP->SetConnection(pNetConnect);
646 FIXME(
"Got invalid command\n");
659 SVSIF selFlags = SVSI_DESELECTOTHERS | SVSI_EDIT | SVSI_ENSUREVISIBLE | SVSI_FOCUSED | SVSI_SELECT;
660 psv->SelectItem(
m_pidl, selFlags);
672 FIXME(
"Command %u is not implemented\n", CmdId);
686 return pCon->Connect();
688 return pCon->Disconnect();
760 ERR(
"GetModuleFileNameW failed\n");
767 ERR(
"Got invalid pidl\n");
789 return SHDefExtractIconW(pszFile, nIconIndex, 0, phiconLarge, phiconSmall, nIconSize);
841 ERR(
"Got invalid pidl\n");
855 FIXME(
"CNetworkConnections::Initialize()\n");
861 FIXME(
"CNetworkConnections::Exec()\n");
867 FIXME(
"CNetworkConnections::QueryStatus()\n");
873 FIXME(
"CNetworkConnections::MessageSFVCB()\n");
EXTERN_C HRESULT WINAPI SHCreateShellFolderViewEx(_In_ LPCSFV pcsfv, _Out_ IShellView **ppsv)
int strcmp(const char *String1, const char *String2)
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
STDMETHOD() HandleMenuMsg2(UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *plResult) override
STDMETHOD() GetCommandString(UINT_PTR idCmd, UINT uType, UINT *pwReserved, LPSTR pszName, UINT cchMax) override
STDMETHOD() GetIconLocation(UINT uFlags, LPWSTR szIconFile, UINT cchMax, int *piIndex, UINT *pwFlags) override
STDMETHOD() Extract(LPCWSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize) override
STDMETHOD() SetSite(IUnknown *punk) override
STDMETHOD() GetSite(REFIID iid, void **ppvSite) override
STDMETHOD() QueryContextMenu(HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) override
HRESULT WINAPI Initialize(PCUITEMID_CHILD pidl, IOleCommandTarget *lpOleCmd)
STDMETHOD() InvokeCommand(LPCMINVOKECOMMANDINFO lpici) override
CComPtr< IOleCommandTarget > m_lpOleCmd
CComPtr< IUnknown > m_pUnknown
STDMETHOD() HandleMenuMsg(UINT uMsg, WPARAM wParam, LPARAM lParam) override
STDMETHOD() GetInfoFlags(DWORD *pdwFlags) override
STDMETHOD() GetInfoTip(DWORD dwFlags, WCHAR **ppwszTip) override
STDMETHOD() BindToStorage(PCUIDLIST_RELATIVE pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut) override
STDMETHOD() Exec(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) override
STDMETHOD() CreateViewObject(HWND hwndOwner, REFIID riid, LPVOID *ppvOut) override
STDMETHOD() GetAttributesOf(UINT cidl, PCUITEMID_CHILD_ARRAY apidl, DWORD *rgfInOut) override
STDMETHOD() GetDetailsEx(PCUITEMID_CHILD pidl, const SHCOLUMNID *pscid, VARIANT *pv) override
STDMETHOD() QueryStatus(const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) override
STDMETHOD() GetDefaultColumn(DWORD dwRes, ULONG *pSort, ULONG *pDisplay) override
STDMETHOD() GetCurFolder(PIDLIST_ABSOLUTE *pidl) override
STDMETHOD() GetDefaultSearchGUID(GUID *pguid) override
STDMETHOD() GetClassID(CLSID *lpClassId) override
STDMETHOD() GetDisplayNameOf(PCUITEMID_CHILD pidl, DWORD dwFlags, LPSTRRET strRet) override
PIDLIST_ABSOLUTE m_pidlRoot
STDMETHOD() ParseDisplayName(HWND hwndOwner, LPBC pbc, LPOLESTR lpszDisplayName, DWORD *pchEaten, PIDLIST_RELATIVE *ppidl, DWORD *pdwAttributes) override
STDMETHOD() CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1, PCUIDLIST_RELATIVE pidl2) override
STDMETHOD() Initialize(PCIDLIST_ABSOLUTE pidl) override
CComPtr< IOleCommandTarget > m_lpOleCmd
STDMETHOD() GetDetailsOf(PCUITEMID_CHILD pidl, UINT iColumn, SHELLDETAILS *psd) override
STDMETHOD() SetNameOf(HWND hwndOwner, PCUITEMID_CHILD pidl, LPCOLESTR lpName, DWORD dwFlags, PITEMID_CHILD *pPidlOut) override
STDMETHOD() BindToObject(PCUIDLIST_RELATIVE pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut) override
STDMETHOD() EnumObjects(HWND hwndOwner, DWORD dwFlags, LPENUMIDLIST *ppEnumIDList) override
STDMETHOD() GetDefaultColumnState(UINT iColumn, DWORD *pcsFlags) override
STDMETHOD() Execute(LPSHELLEXECUTEINFOW pei) override
STDMETHOD() MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam) override
STDMETHOD() MapColumnToSCID(UINT column, SHCOLUMNID *pscid) override
STDMETHOD() EnumSearches(IEnumExtraSearch **ppenum) override
STDMETHOD() GetUIObjectOf(HWND hwndOwner, UINT cidl, PCUITEMID_CHILD_ARRAY apidl, REFIID riid, UINT *prgfInOut, LPVOID *ppvOut) override
#define IDI_SHELL_NETWORK_FOLDER
#define IDS_NET_PROPERTIES
#define IDS_SHV_COLUMN_STATE
#define IDS_STATUS_NON_OPERATIONAL
#define IDS_SHV_COLUMN_DEVNAME
#define IDS_NET_DEACTIVATE
#define IDS_STATUS_CONNECTED
#define IDS_SHV_COLUMN_TYPE
#define IDS_SHV_COLUMN_PHONE
#define IDS_SHV_COLUMN_NAME
#define IDS_STATUS_DISCONNECTED
#define IDS_SHV_COLUMN_OWNER
#define IDS_TYPE_ETHERNET
#define IDS_NET_CREATELINK
#define IDS_NETWORKCONNECTION
#define IDS_STATUS_UNREACHABLE
#define IDS_STATUS_CONNECTING
#define SHCIDS_CANONICALONLY
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW lppsh)
#define FAILED_UNEXPECTEDLY(hr)
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
void WINAPI SHFree(LPVOID pv)
HRESULT WINAPI IUnknown_QueryService(IUnknown *, REFGUID, REFIID, LPVOID *)
#define MAKE_HRESULT(sev, fac, code)
PITEMID_CHILD ILCreateNetConnectItem(INetConnection *pItem)
HRESULT CEnumIDList_CreateInstance(HWND hwndOwner, DWORD dwFlags, REFIID riid, LPVOID *ppv)
PWCHAR ILGetDeviceName(PCITEMID_CHILD pidl)
HRESULT ILGetConnection(PCITEMID_CHILD pidl, INetConnection **pItem)
PNETCONIDSTRUCT ILGetConnData(PCITEMID_CHILD pidl)
PWCHAR ILGetConnName(PCITEMID_CHILD pidl)
HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize)
HRESULT GetProperties([out] NETCON_PROPERTIES **ppProps)
HRESULT GetUiObjectClassId([out, ref] CLSID *pclsid)
HRESULT Exec([in, unique] const GUID *pguidCmdGroup, [in] DWORD nCmdID, [in] DWORD nCmdexecopt, [in, unique] VARIANT *pvaIn, [in, out, unique] VARIANT *pvaOut)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
static PROTOCOLDATA * pdata
struct _PSP * HPROPSHEETPAGE
unsigned __int3264 UINT_PTR
@ NCM_SHAREDACCESSHOST_RAS
EXTERN_C const IID IID_INetConnectionPropertyUi
HINSTANCE netshell_hInstance
VOID WINAPI NcFreeNetconProperties(NETCON_PROPERTIES *pProps)
interface IBindCtx * LPBC
LPITEMIDLIST WINAPI ILClone(LPCITEMIDLIST pidl)
LPITEMIDLIST WINAPI ILFindLastID(LPCITEMIDLIST pidl)
LPITEMIDLIST WINAPI ILGetNext(LPCITEMIDLIST pidl)
struct _PROPSHEETHEADERW PROPSHEETHEADERW
#define IsEqualIID(riid1, riid2)
#define MAKE_COMPARE_HRESULT(x)
void WINAPI _InsertMenuItemW(HMENU hmenu, UINT indexMenu, BOOL fByPosition, UINT wID, UINT fType, LPCWSTR dwTypeData, UINT fState)
#define NETCONNECTSHELLVIEWCOLUMNS
BOOL CALLBACK PropSheetExCallback(HPROPSHEETPAGE hPage, LPARAM lParam)
#define MAX_PROPERTY_SHEET_PAGE
static int CALLBACK PropSheetProc(HWND hwndDlg, UINT uMsg, LPARAM lParam)
static const shvheader NetConnectSFHeader[]
HRESULT ShowNetConnectionStatus(IOleCommandTarget *lpOleCmd, PCUITEMID_CHILD pidl, HWND hwnd)
HRESULT ShowNetConnectionProperties(INetConnection *pNetConnect, HWND hwnd)
HRESULT ShowNetConnectionProperties(INetConnection *pNetConnect, HWND hwnd)
#define CLSID_ConnectionFolder
const PCUITEMID_CHILD * PCUITEMID_CHILD_ARRAY
const ITEMID_CHILD UNALIGNED * PCUITEMID_CHILD
const ITEMIDLIST_RELATIVE UNALIGNED * PCUIDLIST_RELATIVE
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define IS_INTRESOURCE(i)
#define MAKEINTRESOURCEW(i)
HICON WINAPI LoadIconW(_In_opt_ HINSTANCE hInstance, _In_ LPCWSTR lpIconName)
LRESULT WINAPI SendMessageW(_In_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW)
#define IID_PPV_ARG(Itype, ppType)