VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/devpropdef.h@ 104831

最後變更 在這個檔案從104831是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 4.1 KB
 
1/*
2 * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
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/*
20 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef _DEVPROPDEF_H_
29#define _DEVPROPDEF_H_
30
31typedef ULONG DEVPROPTYPE, *PDEVPROPTYPE;
32
33#define DEVPROP_TYPEMOD_ARRAY 0x1000
34#define DEVPROP_TYPEMOD_LIST 0x2000
35#define MAX_DEVPROP_TYPEMOD DEVPROP_TYPEMOD_LIST
36
37#define DEVPROP_TYPE_EMPTY 0x00
38#define DEVPROP_TYPE_NULL 0x01
39#define DEVPROP_TYPE_SBYTE 0x02
40#define DEVPROP_TYPE_BYTE 0x03
41#define DEVPROP_TYPE_INT16 0x04
42#define DEVPROP_TYPE_UINT16 0x05
43#define DEVPROP_TYPE_INT32 0x06
44#define DEVPROP_TYPE_UINT32 0x07
45#define DEVPROP_TYPE_INT64 0x08
46#define DEVPROP_TYPE_UINT64 0x09
47#define DEVPROP_TYPE_FLOAT 0x0a
48#define DEVPROP_TYPE_DOUBLE 0x0b
49#define DEVPROP_TYPE_DECIMAL 0x0c
50#define DEVPROP_TYPE_GUID 0x0d
51#define DEVPROP_TYPE_CURRENCY 0x0e
52#define DEVPROP_TYPE_DATE 0x0f
53#define DEVPROP_TYPE_FILETIME 0x10
54#define DEVPROP_TYPE_BOOLEAN 0x11
55#define DEVPROP_TYPE_STRING 0x12
56#define DEVPROP_TYPE_STRING_LIST (DEVPROP_TYPE_STRING|DEVPROP_TYPEMOD_LIST)
57#define DEVPROP_TYPE_SECURITY_DESCRIPTOR 0x13
58#define DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING 0x14
59#define DEVPROP_TYPE_DEVPROPKEY 0x15
60#define DEVPROP_TYPE_DEVPROPTYPE 0x16
61#define DEVPROP_TYPE_BINARY (DEVPROP_TYPE_BYTE|DEVPROP_TYPEMOD_ARRAY)
62#define DEVPROP_TYPE_ERROR 0x17
63#define DEVPROP_TYPE_NTSTATUS 0x18
64#define DEVPROP_TYPE_STRING_INDIRECT 0x19
65#define MAX_DEVPROP_TYPE DEVPROP_TYPE_STRING_INDIRECT
66
67#define DEVPROP_MASK_TYPE 0x0fff
68#define DEVPROP_MASK_TYPEMOD 0xf000
69
70typedef CHAR DEVPROP_BOOLEAN, *PDEVPROP_BOOLEAN;
71#define DEVPROP_TRUE ((DEVPROP_BOOLEAN)-1)
72#define DEVPROP_FALSE ((DEVPROP_BOOLEAN)0)
73
74#ifndef DEVPROPKEY_DEFINED
75#define DEVPROPKEY_DEFINED
76typedef GUID DEVPROPGUID, *PDEVPROPGUID;
77typedef ULONG DEVPROPID, *PDEVPROPID;
78
79typedef struct _DEVPROPKEY {
80 DEVPROPGUID fmtid;
81 DEVPROPID pid;
82} DEVPROPKEY, *PDEVPROPKEY;
83
84#define DEVPROPID_FIRST_USABLE 2
85
86#endif /*DEVPROPKEY_DEFINED*/
87
88#endif /*_DEVPROPDEF_H_*/
89
90#undef DEFINE_DEVPROPKEY
91#ifdef INITGUID
92#ifdef __cplusplus
93#define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
94 EXTERN_C const DEVPROPKEY name DECLSPEC_HIDDEN DECLSPEC_SELECTANY; \
95 EXTERN_C const DEVPROPKEY name = \
96 { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
97#else
98#define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
99 const DEVPROPKEY name DECLSPEC_HIDDEN DECLSPEC_SELECTANY; \
100 const DEVPROPKEY name = \
101 { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
102#endif
103#else
104#define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
105 EXTERN_C const DEVPROPKEY name DECLSPEC_HIDDEN DECLSPEC_SELECTANY
106#endif
107
108#ifndef IsEqualDevPropKey
109#ifdef __cplusplus
110#define IsEqualDevPropKey(a,b) (((a).pid == (b).pid) && IsEqualIID((a).fmtid,(b).fmtid))
111#else
112#define IsEqualDevPropKey(a,b) (((a).pid == (b).pid) && IsEqualIID(&(a).fmtid,&(b).fmtid))
113#endif
114#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette