35 lines
753 B
C
35 lines
753 B
C
|
// Password.h : Declaration of the CPassword
|
||
|
|
||
|
#ifndef __PASSWORD_H_
|
||
|
#define __PASSWORD_H_
|
||
|
|
||
|
#include "resource.h" // main symbols
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CPassword
|
||
|
class ATL_NO_VTABLE CPassword :
|
||
|
public CComObjectRootEx<CComSingleThreadModel>,
|
||
|
public CComCoClass<CPassword, &CLSID_Password>,
|
||
|
public IDispatchImpl<IPassword, &IID_IPassword, &LIBID_SCRIPTPWLib>
|
||
|
{
|
||
|
public:
|
||
|
CPassword()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
DECLARE_REGISTRY_RESOURCEID(IDR_PASSWORD)
|
||
|
|
||
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
||
|
|
||
|
BEGIN_COM_MAP(CPassword)
|
||
|
COM_INTERFACE_ENTRY(IPassword)
|
||
|
COM_INTERFACE_ENTRY(IDispatch)
|
||
|
END_COM_MAP()
|
||
|
|
||
|
// IPassword
|
||
|
public:
|
||
|
STDMETHOD(GetPassword)(/*[out, retval]*/ BSTR *bstrOutPassword);
|
||
|
};
|
||
|
|
||
|
#endif //__PASSWORD_H_
|