4 * This file is part of the ReactOS PSDK package.
7 * Created by Amine Khaldi.
9 * THIS SOFTWARE IS NOT COPYRIGHTED
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
14 * This code is distributed in the hope that it will be useful but
15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16 * DISCLAIMED. This includes but is not limited to warranties of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 #ifndef _DEVPROPDEF_H_
22 #define _DEVPROPDEF_H_
24 typedef ULONG DEVPROPTYPE
, *PDEVPROPTYPE
;
26 #define DEVPROP_TYPEMOD_ARRAY 0x00001000
27 #define DEVPROP_TYPEMOD_LIST 0x00002000
29 #define DEVPROP_TYPE_EMPTY 0x00000000
30 #define DEVPROP_TYPE_NULL 0x00000001
31 #define DEVPROP_TYPE_SBYTE 0x00000002
32 #define DEVPROP_TYPE_BYTE 0x00000003
33 #define DEVPROP_TYPE_INT16 0x00000004
34 #define DEVPROP_TYPE_UINT16 0x00000005
35 #define DEVPROP_TYPE_INT32 0x00000006
36 #define DEVPROP_TYPE_UINT32 0x00000007
37 #define DEVPROP_TYPE_INT64 0x00000008
38 #define DEVPROP_TYPE_UINT64 0x00000009
39 #define DEVPROP_TYPE_FLOAT 0x0000000A
40 #define DEVPROP_TYPE_DOUBLE 0x0000000B
41 #define DEVPROP_TYPE_DECIMAL 0x0000000C
42 #define DEVPROP_TYPE_GUID 0x0000000D
43 #define DEVPROP_TYPE_CURRENCY 0x0000000E
44 #define DEVPROP_TYPE_DATE 0x0000000F
45 #define DEVPROP_TYPE_FILETIME 0x00000010
46 #define DEVPROP_TYPE_BOOLEAN 0x00000011
47 #define DEVPROP_TYPE_STRING 0x00000012
48 #define DEVPROP_TYPE_STRING_LIST (DEVPROP_TYPE_STRING|DEVPROP_TYPEMOD_LIST)
49 #define DEVPROP_TYPE_SECURITY_DESCRIPTOR 0x00000013
50 #define DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING 0x00000014
51 #define DEVPROP_TYPE_DEVPROPKEY 0x00000015
52 #define DEVPROP_TYPE_DEVPROPTYPE 0x00000016
53 #define DEVPROP_TYPE_BINARY (DEVPROP_TYPE_BYTE|DEVPROP_TYPEMOD_ARRAY)
54 #define DEVPROP_TYPE_ERROR 0x00000017
55 #define DEVPROP_TYPE_NTSTATUS 0x00000018
56 #define DEVPROP_TYPE_STRING_INDIRECT 0x00000019
58 #define MAX_DEVPROP_TYPE 0x00000019
59 #define MAX_DEVPROP_TYPEMOD 0x00002000
61 #define DEVPROP_MASK_TYPE 0x00000FFF
62 #define DEVPROP_MASK_TYPEMOD 0x0000F000
64 typedef CHAR DEVPROP_BOOLEAN
, *PDEVPROP_BOOLEAN
;
66 #define DEVPROP_TRUE ((DEVPROP_BOOLEAN)-1)
67 #define DEVPROP_FALSE ((DEVPROP_BOOLEAN) 0)
69 #ifndef DEVPROPKEY_DEFINED
70 #define DEVPROPKEY_DEFINED
72 typedef GUID DEVPROPGUID
, *PDEVPROPGUID
;
73 typedef ULONG DEVPROPID
, *PDEVPROPID
;
75 typedef struct _DEVPROPKEY
{
78 } DEVPROPKEY
, *PDEVPROPKEY
;
81 #define DEVPROPID_FIRST_USABLE 2
83 #endif /* DEVPROPKEY_DEFINED */
85 #endif /* _DEVPROPDEF_H_ */
87 #ifdef DEFINE_DEVPROPKEY
88 #undef DEFINE_DEVPROPKEY
92 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
93 EXTERN_C const DEVPROPKEY DECLSPEC_HIDDEN DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
95 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
96 const DEVPROPKEY DECLSPEC_HIDDEN DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
100 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
101 EXTERN_C const DEVPROPKEY DECLSPEC_HIDDEN name
103 #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) \
104 EXTERN_C const DEVPROPKEY DECLSPEC_HIDDEN DECLSPEC_SELECTANY name
106 #endif /* INITGUID */
108 #ifndef IsEqualDevPropKey
111 #define IsEqualDevPropKey(a, b) (((a).pid == (b).pid) && IsEqualIID((a).fmtid, (b).fmtid))
113 #define IsEqualDevPropKey(a, b) (((a).pid == (b).pid) && IsEqualIID(&(a).fmtid, &(b).fmtid))
116 #endif /* !IsEqualDevPropKey */