You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.3 KiB
79 lines
2.3 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1997 - 1999
|
|
//
|
|
// File: cryptpko.h
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
// CryptPKO.h : Declaration of the CCryptPKO
|
|
|
|
#ifndef __CRYPTPKO_H_
|
|
#define __CRYPTPKO_H_
|
|
|
|
#include "resource.h" // main symbols
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CCryptPKO
|
|
class ATL_NO_VTABLE CCryptPKO :
|
|
public CComObjectRootEx<CComSingleThreadModel>,
|
|
public CComCoClass<CCryptPKO, &CLSID_CryptPKO>,
|
|
public ICryptPKO,
|
|
public IContextMenu,
|
|
public IShellPropSheetExt,
|
|
public IShellExtInit
|
|
{
|
|
protected:
|
|
LPDATAOBJECT m_pDataObj;
|
|
|
|
public:
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_CRYPTPKO)
|
|
DECLARE_NOT_AGGREGATABLE(CCryptPKO)
|
|
|
|
BEGIN_COM_MAP(CCryptPKO)
|
|
COM_INTERFACE_ENTRY(ICryptPKO)
|
|
COM_INTERFACE_ENTRY(IContextMenu)
|
|
COM_INTERFACE_ENTRY(IShellPropSheetExt)
|
|
COM_INTERFACE_ENTRY(IShellExtInit)
|
|
END_COM_MAP()
|
|
|
|
// ICryptPKO
|
|
public:
|
|
|
|
CCryptPKO();
|
|
~CCryptPKO();
|
|
|
|
//IShell members
|
|
STDMETHODIMP QueryContextMenu(HMENU hMenu,
|
|
UINT indexMenu,
|
|
UINT idCmdFirst,
|
|
UINT idCmdLast,
|
|
UINT uFlags);
|
|
|
|
STDMETHODIMP InvokeCommand(LPCMINVOKECOMMANDINFO lpcmi);
|
|
|
|
STDMETHODIMP GetCommandString(UINT_PTR idCmd,
|
|
UINT uFlags,
|
|
UINT FAR *reserved,
|
|
LPSTR pszName,
|
|
UINT cchMax);
|
|
|
|
//IShellPropSheetExt methods
|
|
STDMETHODIMP AddPages(LPFNADDPROPSHEETPAGE lpfnAddPage, LPARAM lParam);
|
|
|
|
STDMETHODIMP ReplacePage(UINT uPageID,
|
|
LPFNADDPROPSHEETPAGE lpfnReplaceWith,
|
|
LPARAM lParam);
|
|
|
|
|
|
//IShellExtInit methods
|
|
STDMETHODIMP Initialize(LPCITEMIDLIST pIDFolder,
|
|
LPDATAOBJECT pDataObj,
|
|
HKEY hKeyID);
|
|
|
|
};
|
|
|
|
#endif //__CRYPTPKO_H_
|