home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / objmodel / addauto.h next >
C/C++ Source or Header  |  1998-05-05  |  1KB  |  34 lines

  1. // Microsoft Visual Studio Object Model
  2. // Copyright (C) 1996-1997 Microsoft Corporation
  3. // All rights reserved.
  4.  
  5. /////////////////////////////////////////////////////////////////////////////
  6. // addauto.h
  7.  
  8. // This file declares the IDSAddIn interface.  Unlike the other
  9. //  files in this directory, this file describes an interface that
  10. //  is not implemented by Visual Studio.  This interface must be
  11. //  implemented by a Developer Studio Add-in so that Visual
  12. //  Studio can call into it.  The code to do this is automatically
  13. //  generated by the Developer Studio Add-in Wizard.
  14.  
  15. #ifndef __ADDAUTO_H__
  16. #define __ADDAUTO_H__
  17.  
  18. #include "appauto.h"
  19.  
  20. DECLARE_INTERFACE_(IDSAddIn, IUnknown)
  21. {
  22.     // IUnknown methods
  23.     STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj) PURE;
  24.     STDMETHOD_(ULONG,AddRef)(THIS) PURE;
  25.     STDMETHOD_(ULONG,Release)(THIS) PURE;
  26.  
  27.     // IDSAddIn methods
  28.     STDMETHOD(OnConnection)(THIS_ IApplication* pApp, VARIANT_BOOL bFirstTime, long dwCookie, VARIANT_BOOL* OnConnection) PURE;
  29.     STDMETHOD(OnDisconnection)(THIS_ VARIANT_BOOL bLastTime) PURE;
  30. };
  31.  
  32.  
  33.  
  34. #endif //__ADDAUTO_H__