1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
#include <windows.h>
#include <port1632.h>
#include <ddeml.h>
#include "wrapper.h"
#include "ddestrs.h"
/* Truley global variables */
CHAR szClass[] = "DdeStrs";
int cyText = 0;
int cxText = 0;
BOOL fClient = FALSE;
BOOL fServer = FALSE;
HINSTANCE hInst;
HWND hwndMain;
CHAR szExecDie[] = "Die";
CHAR szExecDisconnect[] = "Disconnect";
CHAR szExecRefresh[] = "Refresh";
// This array contains storage for each supported
// format (CF_TEXT,CF_BITMAP,CF_DIB,..CF_ENHMETAFILE)
INT iAvailFormats[] = { 0, 0, 0, 0, 0, 0 };
/*
* Service tables - read bottom up
*/
DDEFORMATTBL TestItemFormats[] = {
{
"TEXT",
CF_TEXT,
0,
PokeTestItem_Text,
RenderTestItem_Text
},
{
"DIB",
CF_DIB,
0,
PokeTestItem_DIB,
RenderTestItem_DIB
},
{
"BITMAP",
CF_BITMAP,
0,
PokeTestItem_BITMAP,
RenderTestItem_BITMAP
},
#ifdef WIN32
{
"ENHMETAFILE",
CF_ENHMETAFILE,
0,
PokeTestItem_ENHMETA,
RenderTestItem_ENHMETA
},
#endif
{
"METAFILEPICT",
CF_METAFILEPICT,
0,
PokeTestItem_METAPICT,
RenderTestItem_METAPICT
},
{
"PALETTE",
CF_PALETTE,
0,
PokeTestItem_PALETTE,
RenderTestItem_PALETTE
}
};
DDEITEMTBL Items[] = {
{
"TestItem",
0,
sizeof(TestItemFormats) / sizeof(DDEFORMATTBL),
0,
TestItemFormats
}
};
DDETOPICTBL Topics[] = {
{
TOPIC,
0,
sizeof(Items) / sizeof(DDEITEMTBL),
0,
Items,
Execute
}
};
DDESERVICETBL ServiceInfoTable[] = {
{
"DdeStrs",
0,
sizeof(Topics) / sizeof(DDETOPICTBL),
0,
Topics
}
};
|