mirror of https://github.com/tongzx/nt5src
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.
64 lines
1.5 KiB
64 lines
1.5 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1999 - 2000
|
|
//
|
|
// File: ShellExtensions.h
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#ifndef __SHELLEXTENSIONS_H
|
|
#define __SHELLEXTENSIONS_H
|
|
|
|
|
|
|
|
class CLayerUIPropPage:
|
|
IShellExtInit,
|
|
IShellPropSheetExt,
|
|
public CComObjectRoot,
|
|
public CComCoClass<CLayerUIPropPage, &CLSID_ShimLayerPropertyPage>
|
|
{
|
|
BEGIN_COM_MAP(CLayerUIPropPage)
|
|
COM_INTERFACE_ENTRY(IShellExtInit)
|
|
COM_INTERFACE_ENTRY(IShellPropSheetExt)
|
|
END_COM_MAP()
|
|
|
|
public:
|
|
DECLARE_REGISTRY_CLSID()
|
|
|
|
CLayerUIPropPage();
|
|
~CLayerUIPropPage();
|
|
|
|
//
|
|
// IShellExtInit methods
|
|
//
|
|
STDMETHODIMP Initialize(LPCITEMIDLIST pIDFolder,
|
|
LPDATAOBJECT pDataObj,
|
|
HKEY hKeyID);
|
|
|
|
//
|
|
// IShellPropSheetExt methods
|
|
//
|
|
STDMETHODIMP AddPages(LPFNADDPROPSHEETPAGE lpfnAddPage,
|
|
LPARAM lParam);
|
|
|
|
STDMETHODIMP ReplacePage(UINT uPageID,
|
|
LPFNADDPROPSHEETPAGE lpfnReplacePage,
|
|
LPARAM lParam);
|
|
|
|
friend INT_PTR CALLBACK
|
|
LayerPageDlgProc(HWND hdlg,
|
|
UINT uMsg,
|
|
WPARAM wParam,
|
|
LPARAM lParam);
|
|
|
|
private:
|
|
CComPtr<IDataObject> m_spDataObj;
|
|
|
|
TCHAR m_szFile[MAX_PATH];
|
|
};
|
|
|
|
|
|
#endif // __SHELLEXTENSIONS_H
|
|
|