annotate src/VisVim/DSAddIn.h @ 11181:13544aa85dc0 v8.0.0477

patch 8.0.0477: the client-server test may hang when failing commit https://github.com/vim/vim/commit/42205551b140bee8b419b24abe210f56bb80b35e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 18 19:42:22 2017 +0100 patch 8.0.0477: the client-server test may hang when failing Problem: The client-server test may hang when failing. Solution: Set a timer. Add assert_report()
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Mar 2017 19:45:05 +0100
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 // DSAddIn.h : header file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 //
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 #if !defined(AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED_)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 #define AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED_
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 #include "commands.h"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 // {4F9E01C0-406B-11d2-8006-00001C405077}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 DEFINE_GUID (CLSID_DSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 0x4f9e01c0, 0x406b, 0x11d2, 0x80, 0x6, 0x0, 0x0, 0x1c, 0x40, 0x50, 0x77);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 /////////////////////////////////////////////////////////////////////////////
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 // CDSAddIn
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 class CDSAddIn :
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 public IDSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 public CComObjectRoot,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 public CComCoClass < CDSAddIn,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 &CLSID_DSAddIn >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 public:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 DECLARE_REGISTRY (CDSAddIn, "VisVim.DSAddIn.1",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 "VisVim Developer Studio Add-in", IDS_VISVIM_LONGNAME,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 THREADFLAGS_BOTH)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 CDSAddIn ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 BEGIN_COM_MAP (CDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 COM_INTERFACE_ENTRY (IDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 END_COM_MAP ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 DECLARE_NOT_AGGREGATABLE (CDSAddIn)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 // IDSAddIns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 public:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 STDMETHOD (OnConnection) (THIS_ IApplication * pApp, VARIANT_BOOL bFirstTime,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 long dwCookie, VARIANT_BOOL * OnConnection);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 STDMETHOD (OnDisconnection) (THIS_ VARIANT_BOOL bLastTime);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 bool AddCommand (IApplication* pApp, char* MethodName, char* CmdName,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 UINT StrResId, UINT GlyphIndex, VARIANT_BOOL bFirstTime);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 protected:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 CCommandsObj * m_pCommands;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 DWORD m_dwCookie;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 //{{AFX_INSERT_LOCATION}}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 #endif // !defined(AFX_DSADDIN_H__AC726715_2977_11D1_B2F3_006008040780__INCLUDED)