scrrun: Implement Reset() for file collection.
[wine/multimedia.git] / include / devpropdef.h
blob8db292c7d11d17fae4d57b99b9324636cb7f16b0
1 /*
2 * Copyright (C) 2010 Maarten Lankhorst for CodeWeavers
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.
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.
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
19 #ifndef _DEVPROPDEF_H_
20 #define _DEVPROPDEF_H_
22 typedef ULONG DEVPROPTYPE, *PDEVPROPTYPE;
24 #define DEVPROP_TYPEMOD_ARRAY 0x1000
25 #define DEVPROP_TYPEMOD_LIST 0x2000
26 #define MAX_DEVPROP_TYPEMOD DEVPROP_TYPEMOD_LIST
28 #define DEVPROP_TYPE_EMPTY 0x00
29 #define DEVPROP_TYPE_NULL 0x01
30 #define DEVPROP_TYPE_SBYTE 0x02
31 #define DEVPROP_TYPE_BYTE 0x03
32 #define DEVPROP_TYPE_INT16 0x04
33 #define DEVPROP_TYPE_UINT16 0x05
34 #define DEVPROP_TYPE_INT32 0x06
35 #define DEVPROP_TYPE_UINT32 0x07
36 #define DEVPROP_TYPE_INT64 0x08
37 #define DEVPROP_TYPE_UINT64 0x09
38 #define DEVPROP_TYPE_FLOAT 0x0a
39 #define DEVPROP_TYPE_DOUBLE 0x0b
40 #define DEVPROP_TYPE_DECIMAL 0x0c
41 #define DEVPROP_TYPE_GUID 0x0d
42 #define DEVPROP_TYPE_CURRENCY 0x0e
43 #define DEVPROP_TYPE_DATE 0x0f
44 #define DEVPROP_TYPE_FILETIME 0x10
45 #define DEVPROP_TYPE_BOOLEAN 0x11
46 #define DEVPROP_TYPE_STRING 0x12
47 #define DEVPROP_TYPE_STRING_LIST (DEVPROP_TYPE_STRING|DEVPROP_TYPEMOD_LIST)
48 #define DEVPROP_TYPE_SECURITY_DESCRIPTOR 0x13
49 #define DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING 0x14
50 #define DEVPROP_TYPE_DEVPROPKEY 0x15
51 #define DEVPROP_TYPE_DEVPROPTYPE 0x16
52 #define DEVPROP_TYPE_BINARY (DEVPROP_TYPE_BYTE|DEVPROP_TYPEMOD_ARRAY)
53 #define DEVPROP_TYPE_ERROR 0x17
54 #define DEVPROP_TYPE_NTSTATUS 0x18
55 #define DEVPROP_TYPE_STRING_INDIRECT 0x19
56 #define MAX_DEVPROP_TYPE DEVPROP_TYPE_STRING_INDIRECT
58 #define DEVPROP_MASK_TYPE 0x0fff
59 #define DEVPROP_MASK_TYPEMOD 0xf000
61 typedef CHAR DEVPROP_BOOLEAN, *PDEVPROP_BOOLEAN;
62 #define DEVPROP_TRUE ((DEVPROP_BOOLEAN)-1)
63 #define DEVPROP_FALSE ((DEVPROP_BOOLEAN)0)
65 #ifndef DEVPROPKEY_DEFINED
66 #define DEVPROPKEY_DEFINED
67 typedef GUID DEVPROPGUID, *PDEVPROPGUID;
68 typedef ULONG DEVPROPID, *PDEVPROPID;
70 typedef struct _DEVPROPKEY {
71 DEVPROPGUID fmtid;
72 DEVPROPID pid;
73 } DEVPROPKEY, *PDEVPROPKEY;
75 #define DEVPROPID_FIRST_USABLE 2
77 #endif /*DEVPROPKEY_DEFINED*/
79 #endif /*_DEVPROPDEF_H_*/
81 #undef DEFINE_DEVPROPKEY
82 #ifdef INITGUID
83 #ifdef __cplusplus
84 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
85 EXTERN_C const DEVPROPKEY name DECLSPEC_HIDDEN DECLSPEC_SELECTANY; \
86 EXTERN_C const DEVPROPKEY name = \
87 { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
88 #else
89 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
90 const DEVPROPKEY name DECLSPEC_HIDDEN DECLSPEC_SELECTANY; \
91 const DEVPROPKEY name = \
92 { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
93 #endif
94 #else
95 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
96 EXTERN_C const DEVPROPKEY name DECLSPEC_HIDDEN DECLSPEC_SELECTANY
97 #endif
99 #ifndef IsEqualDevPropKey
100 #ifdef __cplusplus
101 #define IsEqualDevPropKey(a,b) (((a).pid == (b).pid) && IsEqualIID((a).fmtid,(b).fmtid))
102 #else
103 #define IsEqualDevPropKey(a,b) (((a).pid == (b).pid) && IsEqualIID(&(a).fmtid,&(b).fmtid))
104 #endif
105 #endif