Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmycomp.h
Go to the documentation of this file.
00001 /* 00002 * Virtual Workplace folder 00003 * 00004 * Copyright 1997 Marcus Meissner 00005 * Copyright 1998, 1999, 2002 Juergen Schmied 00006 * Copyright 2009 Andrew Hill 00007 * 00008 * This library is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public 00010 * License as published by the Free Software Foundation; either 00011 * version 2.1 of the License, or (at your option) any later version. 00012 * 00013 * This library is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00021 */ 00022 00023 #ifndef _CDRIVESFOLDER_H_ 00024 #define _CDRIVESFOLDER_H_ 00025 00026 class CDrivesFolder : 00027 public CComCoClass<CDrivesFolder, &CLSID_MyComputer>, 00028 public CComObjectRootEx<CComMultiThreadModelNoCS>, 00029 public IShellFolder2, 00030 public IPersistFolder2 00031 { 00032 private: 00033 /* both paths are parsible from the desktop */ 00034 LPITEMIDLIST pidlRoot; /* absolute pidl */ 00035 LPWSTR sName; 00036 public: 00037 CDrivesFolder(); 00038 ~CDrivesFolder(); 00039 HRESULT WINAPI FinalConstruct(); 00040 00041 // IShellFolder 00042 virtual HRESULT WINAPI ParseDisplayName (HWND hwndOwner, LPBC pbc, LPOLESTR lpszDisplayName, DWORD *pchEaten, LPITEMIDLIST *ppidl, DWORD *pdwAttributes); 00043 virtual HRESULT WINAPI EnumObjects(HWND hwndOwner, DWORD dwFlags, LPENUMIDLIST *ppEnumIDList); 00044 virtual HRESULT WINAPI BindToObject(LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut); 00045 virtual HRESULT WINAPI BindToStorage(LPCITEMIDLIST pidl, LPBC pbcReserved, REFIID riid, LPVOID *ppvOut); 00046 virtual HRESULT WINAPI CompareIDs(LPARAM lParam, LPCITEMIDLIST pidl1, LPCITEMIDLIST pidl2); 00047 virtual HRESULT WINAPI CreateViewObject(HWND hwndOwner, REFIID riid, LPVOID *ppvOut); 00048 virtual HRESULT WINAPI GetAttributesOf (UINT cidl, LPCITEMIDLIST *apidl, DWORD *rgfInOut); 00049 virtual HRESULT WINAPI GetUIObjectOf(HWND hwndOwner, UINT cidl, LPCITEMIDLIST *apidl, REFIID riid, UINT * prgfInOut, LPVOID * ppvOut); 00050 virtual HRESULT WINAPI GetDisplayNameOf(LPCITEMIDLIST pidl, DWORD dwFlags, LPSTRRET strRet); 00051 virtual HRESULT WINAPI SetNameOf(HWND hwndOwner, LPCITEMIDLIST pidl, LPCOLESTR lpName, DWORD dwFlags, LPITEMIDLIST *pPidlOut); 00052 00053 /* ShellFolder2 */ 00054 virtual HRESULT WINAPI GetDefaultSearchGUID(GUID *pguid); 00055 virtual HRESULT WINAPI EnumSearches(IEnumExtraSearch **ppenum); 00056 virtual HRESULT WINAPI GetDefaultColumn(DWORD dwRes, ULONG *pSort, ULONG *pDisplay); 00057 virtual HRESULT WINAPI GetDefaultColumnState(UINT iColumn, DWORD *pcsFlags); 00058 virtual HRESULT WINAPI GetDetailsEx(LPCITEMIDLIST pidl, const SHCOLUMNID *pscid, VARIANT *pv); 00059 virtual HRESULT WINAPI GetDetailsOf(LPCITEMIDLIST pidl, UINT iColumn, SHELLDETAILS *psd); 00060 virtual HRESULT WINAPI MapColumnToSCID(UINT column, SHCOLUMNID *pscid); 00061 00062 // IPersist 00063 virtual HRESULT WINAPI GetClassID(CLSID *lpClassId); 00064 00065 // IPersistFolder 00066 virtual HRESULT WINAPI Initialize(LPCITEMIDLIST pidl); 00067 00068 // IPersistFolder2 00069 virtual HRESULT WINAPI GetCurFolder(LPITEMIDLIST * pidl); 00070 00071 DECLARE_REGISTRY_RESOURCEID(IDR_MYCOMPUTER) 00072 DECLARE_NOT_AGGREGATABLE(CDrivesFolder) 00073 00074 DECLARE_PROTECT_FINAL_CONSTRUCT() 00075 00076 BEGIN_COM_MAP(CDrivesFolder) 00077 COM_INTERFACE_ENTRY_IID(IID_IShellFolder2, IShellFolder2) 00078 COM_INTERFACE_ENTRY_IID(IID_IShellFolder, IShellFolder) 00079 COM_INTERFACE_ENTRY_IID(IID_IPersistFolder, IPersistFolder) 00080 COM_INTERFACE_ENTRY_IID(IID_IPersistFolder2, IPersistFolder2) 00081 COM_INTERFACE_ENTRY_IID(IID_IPersist, IPersist) 00082 END_COM_MAP() 00083 }; 00084 00085 #endif // _CDRIVESFOLDER_H_ Generated on Fri May 25 2012 04:24:30 for ReactOS by
1.7.6.1
|