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.

52 lines
1.8 KiB

  1. // --------------------------------------------------------------------------------
  2. // Rascall.h
  3. // --------------------------------------------------------------------------------
  4. #ifndef __RASCALL_H
  5. #define __RASCALL_H
  6. #include "imnxport.h"
  7. HRESULT HrCreateRASTransport(IRASTransport **ppRAS);
  8. // --------------------------------------------------------------------------------
  9. // CRASCallback Implementation
  10. // --------------------------------------------------------------------------------
  11. class CRASCallback : public IRASCallback
  12. {
  13. private:
  14. ULONG m_cRef;
  15. public:
  16. // ----------------------------------------------------------------------------
  17. // Construction
  18. // ----------------------------------------------------------------------------
  19. CRASCallback(void);
  20. ~CRASCallback(void);
  21. // ----------------------------------------------------------------------------
  22. // IUnknown methods
  23. // ----------------------------------------------------------------------------
  24. STDMETHODIMP QueryInterface(REFIID, LPVOID *);
  25. STDMETHODIMP_(ULONG) AddRef(void);
  26. STDMETHODIMP_(ULONG) Release(void);
  27. STDMETHODIMP OnReconnect(
  28. LPSTR pszCurrentConnectoid,
  29. LPSTR pszNewConnectoid,
  30. IRASTransport *pTransport);
  31. STDMETHODIMP OnLogonPrompt(
  32. LPIXPRASLOGON pRasLogon,
  33. IRASTransport *pTransport);
  34. STDMETHODIMP OnRasDialStatus(
  35. RASCONNSTATE rasconnstate,
  36. DWORD dwError,
  37. IRASTransport *pTransport);
  38. STDMETHODIMP OnDisconnect(
  39. LPSTR pszCurrentConnectoid,
  40. boolean fConnectionOwner,
  41. IRASTransport *pTransport);
  42. };
  43. #endif // __RASCALL_H