home *** CD-ROM | disk | FTP | other *** search
- #if !defined(AFX_DESCTL_H__07D7C6F5_AE76_11D0_9A6F_000100000000__INCLUDED_)
- #define AFX_DESCTL_H__07D7C6F5_AE76_11D0_9A6F_000100000000__INCLUDED_
-
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
-
- // DESCtl.h : Declaration of the CDESCtrl ActiveX Control class.
-
- /////////////////////////////////////////////////////////////////////////////
- // CDESCtrl : See DESCtl.cpp for implementation.
-
- class CDESCtrl : public COleControl
- {
- DECLARE_DYNCREATE(CDESCtrl)
- DES Encryptor, Decryptor;
- CString m_Key;
- BOOL bKeySet;
- // Constructor
- public:
- CDESCtrl();
- BOOL OnSetExtent( LPSIZEL lpSizeL );
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDESCtrl)
- public:
- virtual void OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid);
- virtual void DoPropExchange(CPropExchange* pPX);
- virtual void OnResetState();
- //}}AFX_VIRTUAL
-
- // Implementation
- protected:
- ~CDESCtrl();
-
- BEGIN_OLEFACTORY(CDESCtrl) // Class factory and guid
- virtual BOOL VerifyUserLicense();
- virtual BOOL GetLicenseKey(DWORD, BSTR FAR*);
- END_OLEFACTORY(CDESCtrl)
-
- DECLARE_OLETYPELIB(CDESCtrl) // GetTypeInfo
- DECLARE_PROPPAGEIDS(CDESCtrl) // Property page IDs
- DECLARE_OLECTLTYPE(CDESCtrl) // Type name and misc status
-
- // Message maps
- //{{AFX_MSG(CDESCtrl)
- // NOTE - ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
-
- // Dispatch maps
- //{{AFX_DISPATCH(CDESCtrl)
- afx_msg VARIANT GetKey();
- afx_msg void SetKey(const VARIANT FAR& newValue);
- afx_msg void EncryptFile(LPCTSTR PlaintextFile, LPCTSTR CrypttextFile, const VARIANT FAR& FailIfExists);
- afx_msg BSTR EncryptString(const VARIANT FAR& Plaintext);
- afx_msg BSTR DecryptString(const VARIANT FAR& Crypttext);
- afx_msg void DecryptFile(LPCTSTR CrypttextFile, LPCTSTR PlaintextFile, const VARIANT FAR& FailIfExists);
- //}}AFX_DISPATCH
- DECLARE_DISPATCH_MAP()
-
- afx_msg void AboutBox();
-
- // Event maps
- //{{AFX_EVENT(CDESCtrl)
- //}}AFX_EVENT
- DECLARE_EVENT_MAP()
-
- // Dispatch and event IDs
- public:
- enum {
- //{{AFX_DISP_ID(CDESCtrl)
- dispidKey = 1L,
- dispidEncryptFile = 2L,
- dispidEncryptString = 3L,
- dispidDecryptString = 4L,
- dispidDecryptFile = 5L,
- //}}AFX_DISP_ID
- };
- };
-
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
- #endif // !defined(AFX_DESCTL_H__07D7C6F5_AE76_11D0_9A6F_000100000000__INCLUDED)
-