ReactOS 0.4.15-dev-7131-ge4d03f4
olestd.h
Go to the documentation of this file.
1/*
2 * Copyright 2000 Abey George
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#if !defined( __WINE_OLESTD_H_ )
20#define __WINE_OLESTD_H_
21
22/* Clipboard format strings */
23#define CF_EMBEDSOURCE "Embed Source"
24#define CF_EMBEDDEDOBJECT "Embedded Object"
25#define CF_LINKSOURCE "Link Source"
26#define CF_CUSTOMLINKSOURCE "Custom Link Source"
27#define CF_OBJECTDESCRIPTOR "Object Descriptor"
28#define CF_LINKSRCDESCRIPTOR "Link Source Descriptor"
29#define CF_OWNERLINK "OwnerLink"
30#define CF_FILENAME "FileName"
31
32#define OleStdQueryOleObjectData(lpformatetc) \
33 (((lpformatetc)->tymed & TYMED_ISTORAGE) ? \
34 NOERROR : ResultFromScode(DV_E_FORMATETC))
35
36#define OleStdQueryLinkSourceData(lpformatetc) \
37 (((lpformatetc)->tymed & TYMED_ISTREAM) ? \
38 NOERROR : ResultFromScode(DV_E_FORMATETC))
39
40#define OleStdQueryObjectDescriptorData(lpformatetc) \
41 (((lpformatetc)->tymed & TYMED_HGLOBAL) ? \
42 NOERROR : ResultFromScode(DV_E_FORMATETC))
43
44#define OleStdQueryFormatMedium(lpformatetc, tymd) \
45 (((lpformatetc)->tymed & tymd) ? \
46 NOERROR : ResultFromScode(DV_E_FORMATETC))
47
48/* Make an independent copy of a MetafilePict */
49#define OleStdCopyMetafilePict(hpictin, phpictout) \
50 (*(phpictout) = OleDuplicateData(hpictin,CF_METAFILEPICT,GHND|GMEM_SHARE))
51
52#define CURSOR_NODROP 1
53#define CURSOR_MOVE 2
54#define CURSOR_COPY 3
55#define CURSOR_LINK 4
56
57#endif /* __WINE_OLESTD_H_ */