#include <shfldr_netconnect.h>
|
| CNetConUiObject () |
|
| ~CNetConUiObject () |
|
HRESULT WINAPI | Initialize (PCUITEMID_CHILD pidl, IOleCommandTarget *lpOleCmd) |
|
STDMETHOD() | QueryContextMenu (HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags) override |
|
STDMETHOD() | InvokeCommand (LPCMINVOKECOMMANDINFO lpici) override |
|
STDMETHOD() | GetCommandString (UINT_PTR idCmd, UINT uType, UINT *pwReserved, LPSTR pszName, UINT cchMax) override |
|
STDMETHOD() | HandleMenuMsg (UINT uMsg, WPARAM wParam, LPARAM lParam) override |
|
STDMETHOD() | HandleMenuMsg2 (UINT uMsg, WPARAM wParam, LPARAM lParam, LRESULT *plResult) override |
|
STDMETHOD() | SetSite (IUnknown *punk) override |
|
STDMETHOD() | GetSite (REFIID iid, void **ppvSite) override |
|
STDMETHOD() | GetInfoFlags (DWORD *pdwFlags) override |
|
STDMETHOD() | GetInfoTip (DWORD dwFlags, WCHAR **ppwszTip) 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 |
|
| ~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 782 of file shfldr_netconnect.cpp.
788{
789 return SHDefExtractIconW(pszFile, nIconIndex, 0, phiconLarge, phiconSmall, nIconSize);
790}
HRESULT WINAPI SHDefExtractIconW(LPCWSTR pszIconFile, int iIndex, UINT uFlags, HICON *phiconLarge, HICON *phiconSmall, UINT nIconSize)
◆ GetCommandString()
◆ GetIconLocation()
Definition at line 750 of file shfldr_netconnect.cpp.
756{
757 *pwFlags = 0;
759 {
760 ERR(
"GetModuleFileNameW failed\n");
762 }
763
766 {
767 ERR(
"Got invalid pidl\n");
769 }
770
773 else
775
777}
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 631 of file shfldr_netconnect.cpp.
632{
634
635
637 {
639 }
641 {
643 }
645 {
646 FIXME(
"Got invalid command\n");
648 }
649
650 switch(CmdId)
651 {
653 {
658 {
659 SVSIF selFlags = SVSI_DESELECTOTHERS | SVSI_EDIT | SVSI_ENSUREVISIBLE | SVSI_FOCUSED | SVSI_SELECT;
660 psv->SelectItem(
m_pidl, selFlags);
661 }
662
664 }
666 {
668 }
672 FIXME(
"Command %u is not implemented\n", CmdId);
674 }
675
678
682
683 switch(CmdId)
684 {
686 return pCon->Connect();
688 return pCon->Disconnect();
691 }
692
694}
int strcmp(const char *String1, const char *String2)
#define IDS_NET_PROPERTIES
#define IDS_NET_DEACTIVATE
#define IDS_NET_CREATELINK
#define FAILED_UNEXPECTEDLY(hr)
HRESULT WINAPI IUnknown_QueryService(IUnknown *, REFGUID, REFIID, LPVOID *)
HRESULT ILGetConnection(PCITEMID_CHILD pidl, INetConnection **pItem)
HRESULT ShowNetConnectionStatus(IOleCommandTarget *lpOleCmd, PCUITEMID_CHILD pidl, HWND hwnd)
HRESULT ShowNetConnectionProperties(INetConnection *pNetConnect, HWND hwnd)
#define IS_INTRESOURCE(i)
#define IID_PPV_ARG(Itype, ppType)
◆ QueryContextMenu()
Implements IContextMenu.
Definition at line 469 of file shfldr_netconnect.cpp.
475{
478 {
479 ERR(
"Got invalid pidl\n");
481 }
482
485 else
487
492 else
494
497 else
499
502
505 else
507
510 else
512
516 else
518
520}
#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: