Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.4 KiB

  1. // --------------------------------------------------------------------------------
  2. // Nntpcall.h
  3. // --------------------------------------------------------------------------------
  4. #ifndef __NNTPCALL_H__
  5. #define __NNTPCALL_H__
  6. #include "imnxport.h"
  7. HRESULT HrCreateNNTPTransport(INNTPTransport **ppNNTP);
  8. class CNNTPCallback : public INNTPCallback
  9. {
  10. private:
  11. ULONG m_cRef;
  12. public:
  13. CNNTPCallback(void);
  14. ~CNNTPCallback(void);
  15. STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  16. STDMETHODIMP_(ULONG) AddRef(void);
  17. STDMETHODIMP_(ULONG) Release(void);
  18. // ----------------------------------------------------------------------------
  19. // ITransportCallback methods
  20. // ----------------------------------------------------------------------------
  21. STDMETHODIMP OnLogonPrompt(
  22. LPINETSERVER pInetServer,
  23. IInternetTransport *pTransport);
  24. STDMETHODIMP_(INT) OnPrompt(
  25. HRESULT hrError,
  26. LPCTSTR pszText,
  27. LPCTSTR pszCaption,
  28. UINT uType,
  29. IInternetTransport *pTransport);
  30. STDMETHODIMP OnStatus(
  31. IXPSTATUS ixpstatus,
  32. IInternetTransport *pTransport);
  33. STDMETHODIMP OnError(
  34. IXPSTATUS ixpstatus,
  35. LPIXPRESULT pIxpResult,
  36. IInternetTransport *pTransport);
  37. STDMETHODIMP OnProgress(
  38. DWORD dwIncrement,
  39. DWORD dwCurrent,
  40. DWORD dwMaximum,
  41. IInternetTransport *pTransport);
  42. STDMETHODIMP OnCommand(
  43. CMDTYPE cmdtype,
  44. LPSTR pszLine,
  45. HRESULT hrResponse,
  46. IInternetTransport *pTransport);
  47. STDMETHODIMP OnTimeout(
  48. DWORD *pdwTimeout,
  49. IInternetTransport *pTransport);
  50. // ----------------------------------------------------------------------------
  51. // INNTPCallback methods
  52. // ----------------------------------------------------------------------------
  53. STDMETHODIMP OnResponse(
  54. LPNNTPRESPONSE pResponse);
  55. };
  56. #endif // __NNTPCALL_H__