-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathExplorerCommandBase.h
24 lines (21 loc) · 1.02 KB
/
ExplorerCommandBase.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "pch.h"
namespace NppShell::CommandHandlers
{
class ExplorerCommandBase : public winrt::implements<ExplorerCommandBase, IExplorerCommand>
{
public:
virtual const wstring Title() = 0;
virtual const wstring Icon() = 0;
virtual const EXPCMDFLAGS Flags();
virtual const EXPCMDSTATE State(IShellItemArray* psiItemArray) = 0;
IFACEMETHODIMP GetTitle(IShellItemArray* psiItemArray, LPWSTR* ppszName);
IFACEMETHODIMP GetIcon(IShellItemArray* psiItemArray, LPWSTR* ppszIcon);
IFACEMETHODIMP GetToolTip(IShellItemArray* psiItemArray, LPWSTR* ppszInfotip);
IFACEMETHODIMP GetState(IShellItemArray* psiItemArray, BOOL fOkToBeSlow, EXPCMDSTATE* pCmdState);
IFACEMETHODIMP GetFlags(EXPCMDFLAGS* flags);
IFACEMETHODIMP GetCanonicalName(GUID* pguidCommandName);
IFACEMETHODIMP EnumSubCommands(IEnumExplorerCommand** ppEnum);
virtual IFACEMETHODIMP Invoke(IShellItemArray* psiItemArray, IBindCtx* pbc) noexcept = 0;
};
}