home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
addins
/
api2help
/
dsaddin.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-02
|
1KB
|
51 lines
// DSAddIn.h : header file
//
// Copyright (C) 1992-1998 Microsoft Corporation
// All rights reserved.
#if !defined(AFX_DSADDIN_H__17A222A6_431B_11D0_B88F_00C04FD7A0F0__INCLUDED_)
#define AFX_DSADDIN_H__17A222A6_431B_11D0_B88F_00C04FD7A0F0__INCLUDED_
#include "commands.h"
// {17A22293-431B-11D0-B88F-00C04FD7A0F0}
DEFINE_GUID(CLSID_DSAddIn,
0x17a22293, 0x431b, 0x11d0, 0xb8, 0x8f, 0, 0xc0, 0x4f, 0xd7, 0xa0, 0xf0);
/////////////////////////////////////////////////////////////////////////////
// CDSAddIn
class CDSAddIn :
public IDSAddIn,
public CComObjectRoot,
public CComCoClass<CDSAddIn, &CLSID_DSAddIn>
{
public:
DECLARE_REGISTRY(CDSAddIn, "API2Help.DSAddIn.1",
"API2HELP Developer Studio Add-in", IDS_API2HELP_LONGNAME,
THREADFLAGS_BOTH)
CDSAddIn() {}
BEGIN_COM_MAP(CDSAddIn)
COM_INTERFACE_ENTRY(IDSAddIn)
END_COM_MAP()
DECLARE_NOT_AGGREGATABLE(CDSAddIn)
// IDSAddIns
public:
STDMETHOD(OnConnection)(THIS_ IApplication* pApp, VARIANT_BOOL bFirstTime,
long dwCookie, VARIANT_BOOL* OnConnection);
STDMETHOD(OnDisconnection)(THIS_ VARIANT_BOOL bLastTime);
protected:
CCommandsObj* m_pCommands;
DWORD m_dwCookie;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DSADDIN_H__17A222A6_431B_11D0_B88F_00C04FD7A0F0__INCLUDED)