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.

46 lines
1.6 KiB

  1. #define DISPID_RasDialStatus 0x1
  2. #define DISPID_DownloadProgress 0x2
  3. #define DISPID_DownloadComplete 0x3
  4. #define DISPID_RasConnectComplete 0x4
  5. class CRefDialEvent : public _RefDialEvents
  6. {
  7. private:
  8. ULONG m_cRef; //Reference count
  9. UINT m_uID; //Sink identifier
  10. HWND m_hWnd;
  11. public:
  12. //Connection key, public for CApp's usage
  13. DWORD m_dwCookie;
  14. public:
  15. CRefDialEvent(HWND hWnd);
  16. ~CRefDialEvent(void);
  17. //IUnknown members
  18. STDMETHODIMP QueryInterface(REFIID, void **);
  19. STDMETHODIMP_(DWORD) AddRef(void);
  20. STDMETHODIMP_(DWORD) Release(void);
  21. //IDispatch
  22. STDMETHODIMP GetTypeInfoCount(UINT* pctinfo);
  23. STDMETHODIMP GetTypeInfo(/* [in] */ UINT iTInfo,
  24. /* [in] */ LCID lcid,
  25. /* [out] */ ITypeInfo** ppTInfo);
  26. STDMETHODIMP GetIDsOfNames(
  27. /* [in] */ REFIID riid,
  28. /* [size_is][in] */ LPOLESTR *rgszNames,
  29. /* [in] */ UINT cNames,
  30. /* [in] */ LCID lcid,
  31. /* [size_is][out] */ DISPID *rgDispId);
  32. STDMETHODIMP Invoke(
  33. /* [in] */ DISPID dispIdMember,
  34. /* [in] */ REFIID riid,
  35. /* [in] */ LCID lcid,
  36. /* [in] */ WORD wFlags,
  37. /* [out][in] */ DISPPARAMS *pDispParams,
  38. /* [out] */ VARIANT *pVarResult,
  39. /* [out] */ EXCEPINFO *pExcepInfo,
  40. /* [out] */ UINT *puArgErr);
  41. };