1 | /*************************************************************************
|
---|
2 | **
|
---|
3 | ** olestd.h
|
---|
4 | **
|
---|
5 | *************************************************************************/
|
---|
6 |
|
---|
7 | #if !defined( __WINE_OLESTD_H_ )
|
---|
8 | #define __WINE_OLESTD_H_
|
---|
9 |
|
---|
10 | #if !defined(__cplusplus) && !defined( __TURBOC__)
|
---|
11 | #define NONAMELESSUNION /* use strict ANSI standard (for DVOBJ.H) */
|
---|
12 | #endif
|
---|
13 |
|
---|
14 | /* Clipboard format strings */
|
---|
15 | #define CF_EMBEDSOURCE "Embed Source"
|
---|
16 | #define CF_EMBEDDEDOBJECT "Embedded Object"
|
---|
17 | #define CF_LINKSOURCE "Link Source"
|
---|
18 | #define CF_CUSTOMLINKSOURCE "Custom Link Source"
|
---|
19 | #define CF_OBJECTDESCRIPTOR "Object Descriptor"
|
---|
20 | #define CF_LINKSRCDESCRIPTOR "Link Source Descriptor"
|
---|
21 | #define CF_OWNERLINK "OwnerLink"
|
---|
22 | #define CF_FILENAME "FileName"
|
---|
23 |
|
---|
24 | #define OleStdQueryOleObjectData(lpformatetc) \
|
---|
25 | (((lpformatetc)->tymed & TYMED_ISTORAGE) ? \
|
---|
26 | NOERROR : ResultFromScode(DV_E_FORMATETC))
|
---|
27 |
|
---|
28 | #define OleStdQueryLinkSourceData(lpformatetc) \
|
---|
29 | (((lpformatetc)->tymed & TYMED_ISTREAM) ? \
|
---|
30 | NOERROR : ResultFromScode(DV_E_FORMATETC))
|
---|
31 |
|
---|
32 | #define OleStdQueryObjectDescriptorData(lpformatetc) \
|
---|
33 | (((lpformatetc)->tymed & TYMED_HGLOBAL) ? \
|
---|
34 | NOERROR : ResultFromScode(DV_E_FORMATETC))
|
---|
35 |
|
---|
36 | #define OleStdQueryFormatMedium(lpformatetc, tymd) \
|
---|
37 | (((lpformatetc)->tymed & tymd) ? \
|
---|
38 | NOERROR : ResultFromScode(DV_E_FORMATETC))
|
---|
39 |
|
---|
40 | /* Make an independent copy of a MetafilePict */
|
---|
41 | #define OleStdCopyMetafilePict(hpictin, phpictout) \
|
---|
42 | (*(phpictout) = OleDuplicateData(hpictin,CF_METAFILEPICT,GHND|GMEM_SHARE))
|
---|
43 |
|
---|
44 | #endif /* __WINE_OLESTD_H_ */
|
---|