#include <shfldr_netconnect.h>
|
| CNetConUiObject () |
|
| ~CNetConUiObject () |
|
HRESULT WINAPI | Initialize (PCUITEMID_CHILD pidl, IOleCommandTarget *lpOleCmd) |
|
virtual HRESULT WINAPI | QueryContextMenu (HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) |
|
virtual HRESULT WINAPI | InvokeCommand (LPCMINVOKECOMMANDINFO lpici) |
|
virtual HRESULT WINAPI | GetCommandString (UINT_PTR idCmd, UINT uType, UINT *pwReserved, LPSTR pszName, UINT cchMax) |
|
virtual HRESULT WINAPI | HandleMenuMsg (UINT uMsg, WPARAM wParam, LPARAM lParam) |
|
virtual HRESULT WINAPI | HandleMenuMsg2 (UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *plResult) |
|
virtual HRESULT WINAPI | SetSite (IUnknown *punk) |
|
virtual HRESULT WINAPI | GetSite (REFIID iid, void **ppvSite) |
|
virtual HRESULT WINAPI | GetInfoFlags (DWORD *pdwFlags) |
|
virtual HRESULT WINAPI | GetInfoTip (DWORD dwFlags, WCHAR **ppwszTip) |
|
virtual HRESULT STDMETHODCALLTYPE | GetIconLocation (UINT uFlags, LPWSTR szIconFile, UINT cchMax, int *piIndex, UINT *pwFlags) |
|
virtual HRESULT STDMETHODCALLTYPE | Extract (LPCWSTR pszFile, UINT nIconIndex, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize) |
|
| ~CComObjectRootEx () |
|
ULONG | InternalAddRef () |
|
ULONG | InternalRelease () |
|
void | Lock () |
|
void | Unlock () |
|
HRESULT | _AtlInitialConstruct () |
|
| CComObjectRootBase () |
|
| ~CComObjectRootBase () |
|
void | SetVoid (void *) |
|
HRESULT | _AtlFinalConstruct () |
|
HRESULT | FinalConstruct () |
|
void | InternalFinalConstructAddRef () |
|
void | InternalFinalConstructRelease () |
|
void | FinalRelease () |
|
HRESULT | HandleMenuMsg2 ([in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam, [out] LRESULT *plResult) |
|
HRESULT | HandleMenuMsg ([in] UINT uMsg, [in] WPARAM wParam, [in] LPARAM lParam) |
|
HRESULT | QueryContextMenu ([in] HMENU hmenu, [in] UINT indexMenu, [in] UINT idCmdFirst, [in] UINT idCmdLast, [in] UINT uFlags) |
|
HRESULT | InvokeCommand ([in] LPCMINVOKECOMMANDINFO lpici) |
|
HRESULT | GetCommandString ([in] UINT_PTR idCmd, [in] UINT uType, [out] UINT *pwReserved, [out, size_is(cchMax)] LPSTR pszName, [in] UINT cchMax) |
|
HRESULT | QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject) |
|
ULONG | AddRef () |
|
ULONG | Release () |
|
HRESULT | SetSite ([in] IUnknown *pUnkSite) |
|
HRESULT | GetSite ([in] REFIID riid, [out, iid_is(riid)] PVOID *ppvSite) |
|
Definition at line 88 of file shfldr_netconnect.h.
◆ CNetConUiObject()
CNetConUiObject::CNetConUiObject |
( |
| ) |
|
◆ ~CNetConUiObject()
CNetConUiObject::~CNetConUiObject |
( |
| ) |
|
◆ Extract()
Implements IExtractIconW.
Definition at line 776 of file shfldr_netconnect.cpp.
782{
783 return SHDefExtractIconW(pszFile, nIconIndex, 0, phiconLarge, phiconSmall, nIconSize);
784}
HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize)
◆ GetCommandString()
◆ GetIconLocation()
Definition at line 744 of file shfldr_netconnect.cpp.
750{
751 *pwFlags = 0;
753 {
754 ERR(
"GetModuleFileNameW failed\n");
756 }
757
760 {
761 ERR(
"Got invalid pidl!\n");
763 }
764
767 else
769
771}
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
PNETCONIDSTRUCT ILGetConnData(PCITEMID_CHILD pidl)
static PROTOCOLDATA * pdata
HINSTANCE netshell_hInstance
◆ GetInfoFlags()
◆ GetInfoTip()
◆ GetSite()
◆ HandleMenuMsg()
◆ HandleMenuMsg2()
◆ Initialize()
◆ InvokeCommand()
Implements IContextMenu.
Definition at line 628 of file shfldr_netconnect.cpp.
629{
631
632
633 if (
HIWORD(lpcmi->lpVerb) && !
strcmp(lpcmi->lpVerb,
"rename"))
635
637 {
638 FIXME(
"Got invalid command\n");
640 }
641
643
644 switch(CmdId)
645 {
647 {
652 {
653 SVSIF selFlags = SVSI_DESELECTOTHERS | SVSI_EDIT | SVSI_ENSUREVISIBLE | SVSI_FOCUSED | SVSI_SELECT;
654 psv->SelectItem(
m_pidl, selFlags);
655 }
656
658 }
660 {
662 }
666 FIXME(
"Command %u is not implemented\n", CmdId);
668 }
669
672
676
677 switch(CmdId)
678 {
680 return pCon->Connect();
682 return pCon->Disconnect();
685 }
686
688}
int strcmp(const char *String1, const char *String2)
#define IDS_NET_PROPERTIES
#define IDS_NET_DEACTIVATE
#define IDS_NET_CREATELINK
HRESULT WINAPI IUnknown_QueryService(IUnknown *, REFGUID, REFIID, LPVOID *)
HRESULT ILGetConnection(PCITEMID_CHILD pidl, INetConnection **pItem)
#define FAILED_UNEXPECTEDLY(hr)
HRESULT ShowNetConnectionStatus(IOleCommandTarget *lpOleCmd, PCUITEMID_CHILD pidl, HWND hwnd)
HRESULT ShowNetConnectionProperties(INetConnection *pNetConnect, HWND hwnd)
#define MAKEINTRESOURCEA(i)
#define IID_PPV_ARG(Itype, ppType)
◆ QueryContextMenu()
Implements IContextMenu.
Definition at line 466 of file shfldr_netconnect.cpp.
472{
475 {
476 ERR(
"Got invalid pidl!\n");
478 }
479
482 else
484
489 else
491
494 else
496
499
502 else
504
507 else
509
513 else
515
517}
#define MAKE_HRESULT(sev, fac, code)
void WINAPI _InsertMenuItemW(HMENU hmenu, UINT indexMenu, BOOL fByPosition, UINT wID, UINT fType, LPCWSTR dwTypeData, UINT fState)
#define MAKEINTRESOURCEW(i)
◆ SetSite()
◆ m_lpOleCmd
◆ m_pidl
◆ m_pUnknown
CComPtr<IUnknown> CNetConUiObject::m_pUnknown |
|
private |
The documentation for this class was generated from the following files: