- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
MiniSapi.h
资源名称:MiniCA2.rar [点击查看]
上传用户:dengkfang
上传日期:2008-12-30
资源大小:5233k
文件大小:2k
源码类别:
CA认证
开发平台:
Visual C++
- #if !defined(AFX_MINISAPI_H__A01E64A6_ED6F_4C3C_B1AD_63AA9BDED32E__INCLUDED_)
- #define AFX_MINISAPI_H__A01E64A6_ED6F_4C3C_B1AD_63AA9BDED32E__INCLUDED_
- // MINISAPI.H - Header file for your Internet Server
- // MiniSapi Extension
- #include "..ControlAdoado2.h"
- #include "resource.h"
- class CMiniSapiExtension : public CHttpServer
- {
- public:
- CMiniSapiExtension();
- ~CMiniSapiExtension();
- // Overrides
- // ClassWizard generated virtual function overrides
- // NOTE - the ClassWizard will add and remove member functions here.
- // DO NOT EDIT what you see in these blocks of generated code !
- //{{AFX_VIRTUAL(CMiniSapiExtension)
- public:
- virtual BOOL GetExtensionVersion(HSE_VERSION_INFO* pVer);
- virtual LPCTSTR GetTitle() const;
- //}}AFX_VIRTUAL
- virtual BOOL TerminateExtension(DWORD dwFlags);
- // TODO: Add handlers for your commands here.
- // For example:
- void Default(CHttpServerContext* pCtxt);
- void CertReq(CHttpServerContext* pCtxt, LPTSTR pszUserInfo, LPTSTR pszKeyUsage,
- LPTSTR pszEkeyUsage, LPTSTR pszFriendName, short iCertKeyLen, short iCertValidity,
- short iCertType);
- void Query(CHttpServerContext* pCtxt, LPCSTR sQueryPwd);
- DECLARE_PARSE_MAP()
- //{{AFX_MSG(CMiniSapiExtension)
- //}}AFX_MSG
- private:
- BOOL ConnectDB(CString strMdb, CString & Msg);
- BOOL InsertDB(const char * lpszUserInfo, const char * lpszKeyUsage,
- const char * lpszKeyEusage, const char * lpszFriendName,
- const int iKeyLen, const int iCertValidity,
- const short iCertType, CString & strQueryPwd, CString & strMsg);
- void SetTitle(CString strTitle)
- {
- m_Title = strTitle;
- }
- CString m_Title;
- CADODatabase m_pDb;
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MINISAPI_H__A01E64A6_ED6F_4C3C_B1AD_63AA9BDED32E__INCLUDED)