Source code of Windows XP (NT5)
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.

98 lines
1.3 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1999
  3. Module Name:
  4. ciolecmd.hxx
  5. Abstract:
  6. Header file containing SENS's IOleCommandTarget definition.
  7. Author:
  8. Gopal Parupudi <GopalP>
  9. [Notes:]
  10. optional-notes
  11. Revision History:
  12. GopalP 1/26/1998 Start.
  13. --*/
  14. #ifndef __CIOLECMD_HXX__
  15. #define __CIOLECMD_HXX__
  16. class CImpIOleCommandTarget : public IOleCommandTarget
  17. {
  18. public:
  19. CImpIOleCommandTarget(void);
  20. ~CImpIOleCommandTarget(void);
  21. //
  22. // IUnknown
  23. //
  24. STDMETHOD (QueryInterface) (REFIID, LPVOID *);
  25. STDMETHOD_(ULONG, AddRef) (void);
  26. STDMETHOD_(ULONG, Release) (void);
  27. //
  28. // IOleCommandTarget
  29. //
  30. STDMETHOD (QueryStatus) (const GUID *, ULONG, OLECMD [], OLECMDTEXT *);
  31. STDMETHOD (Exec) (const GUID *, DWORD, DWORD, VARIANT *, VARIANT *);
  32. private:
  33. LONG m_cRef;
  34. };
  35. typedef CImpIOleCommandTarget FAR * LPCIMPIOLECOMMANDTARGET;
  36. //
  37. // Forwards
  38. //
  39. HRESULT
  40. WininetRasConnect(
  41. BSTR bstrPhonebookEntry
  42. );
  43. HRESULT
  44. WininetRasDisconnect(
  45. BSTR bstrPhonebookEntry
  46. );
  47. HRESULT
  48. WininetOnline(
  49. void
  50. );
  51. HRESULT
  52. WininetOffline(
  53. void
  54. );
  55. HRESULT
  56. WininetLogon(
  57. BSTR bstrUserName
  58. );
  59. HRESULT
  60. WininetLogoff(
  61. BSTR bstrUserName
  62. );
  63. #endif // __CIOLECMD_HXX__