home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / internet / pinball / pinball.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.9 KB  |  57 lines

  1. #if !defined(AFX_PINBALL_H__2DB22EF2_A50F_11D1_8E53_00AA00A4BCA9__INCLUDED_)
  2. #define AFX_PINBALL_H__2DB22EF2_A50F_11D1_8E53_00AA00A4BCA9__INCLUDED_
  3.  
  4. // PINBALL.H - Header file for your Internet Server
  5. //    Pinball Extension
  6. //
  7. // This is a part of the Microsoft Foundation Classes C++ library.
  8. // Copyright (C) 1992-1998 Microsoft Corporation
  9. // All rights reserved.
  10. //
  11. // This source code is only intended as a supplement to the
  12. // Microsoft Foundation Classes Reference and related
  13. // electronic documentation provided with the library.
  14. // See these sources for detailed information regarding the
  15. // Microsoft Foundation Classes product.
  16.  
  17. #include "resource.h"
  18.  
  19. class CPinballExtension : public CHttpServer
  20. {
  21. public:
  22.     CPinballExtension();
  23.     ~CPinballExtension();
  24.  
  25.     // implementation
  26. protected:
  27.     BOOL SendGIFFile(CHttpServerContext* pCtxt, LPCTSTR pstrFile, LPCTSTR pstrPath);
  28.     BOOL SendAFile(CHttpServerContext* pCtxt, LPCTSTR pstrFullPath, LPCTSTR pstrContentType);
  29.     BOOL SendJPGFile(CHttpServerContext* pCtxt, LPCTSTR pstrFile, LPCTSTR pstrPath);
  30.  
  31. // Overrides
  32.     // ClassWizard generated virtual function overrides
  33.         // NOTE - the ClassWizard will add and remove member functions here.
  34.         //    DO NOT EDIT what you see in these blocks of generated code !
  35.     //{{AFX_VIRTUAL(CPinballExtension)
  36.     public:
  37.     virtual BOOL GetExtensionVersion(HSE_VERSION_INFO* pVer);
  38.     //}}AFX_VIRTUAL
  39.     virtual BOOL TerminateExtension(DWORD dwFlags);
  40.  
  41.     BOOL LoadLongResource(CString& str, UINT nID);
  42.  
  43.     void GetImage(CHttpServerContext* pCtxt, long dwChoice);
  44.     void Default(CHttpServerContext* pCtxt);
  45.  
  46.     DECLARE_PARSE_MAP()
  47.  
  48.     //{{AFX_MSG(CPinballExtension)
  49.     //}}AFX_MSG
  50. };
  51.  
  52.  
  53. //{{AFX_INSERT_LOCATION}}
  54. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  55.  
  56. #endif // !defined(AFX_PINBALL_H__2DB22EF2_A50F_11D1_8E53_00AA00A4BCA9__INCLUDED)
  57.