|
// PasswordStorageShellExt.h : Declaration of the CPasswordStorageShellExt
#ifndef __PASSWORDSTORAGESHELLEXT_H_
#define __PASSWORDSTORAGESHELLEXT_H_
#include "resource.h" // main symbols
#include "shlobj.h"
#include "comdef.h"
/////////////////////////////////////////////////////////////////////////////
// CPasswordStorageShellExt
class ATL_NO_VTABLE CPasswordStorageShellExt :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CPasswordStorageShellExt, &CLSID_PasswordStorageShellExt>,
public IPasswordStorageShellExt,
public IPersistFile,
public IQueryInfo
{
public:
CPasswordStorageShellExt()
{
m_pszFile = 0;
}
~CPasswordStorageShellExt()
{
if(m_pszFile)
delete [] m_pszFile;
}
// IPersistFile
STDMETHOD(GetClassID)(LPCLSID) { return E_NOTIMPL; }
STDMETHOD(IsDirty)() { return E_NOTIMPL; }
STDMETHOD(Load)(LPCOLESTR, DWORD);
STDMETHOD(Save)(LPCOLESTR, BOOL) { return E_NOTIMPL; }
STDMETHOD(SaveCompleted)(LPCOLESTR) { return E_NOTIMPL; }
STDMETHOD(GetCurFile)(LPOLESTR*) { return E_NOTIMPL; }
// IQueryInfo
STDMETHOD(GetInfoFlags)(DWORD*) { return E_NOTIMPL; }
STDMETHOD(GetInfoTip)(DWORD, LPWSTR*);
DECLARE_REGISTRY_RESOURCEID(IDR_PASSWORDSTORAGESHELLEXT)
DECLARE_NOT_AGGREGATABLE(CPasswordStorageShellExt)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(CPasswordStorageShellExt)
COM_INTERFACE_ENTRY(IPasswordStorageShellExt)
COM_INTERFACE_ENTRY(IPersistFile)
COM_INTERFACE_ENTRY(IQueryInfo)
END_COM_MAP()
// IPasswordStorageShellExt
public:
private:
HANDLE m_hStorage;
LPOLESTR m_pszFile;
};
#endif //__PASSWORDSTORAGESHELLEXT_H_
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here