| #include <winapifamily.h>
|
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|
|
|
|
|
|
| #pragma region Desktop Family or OneCore Family or Games Family
|
| #if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM | WINAPI_PARTITION_GAMES)
|
|
|
| #ifndef _DEVPROPDEF_H_
|
| #define _DEVPROPDEF_H_
|
|
|
|
|
|
|
|
|
|
|
|
|
| typedef ULONG DEVPROPTYPE, *PDEVPROPTYPE;
|
|
|
|
|
|
|
|
|
|
|
| #define DEVPROP_TYPEMOD_ARRAY 0x00001000
|
| #define DEVPROP_TYPEMOD_LIST 0x00002000
|
|
|
|
|
|
|
|
|
| #define DEVPROP_TYPE_EMPTY 0x00000000
|
| #define DEVPROP_TYPE_NULL 0x00000001
|
| #define DEVPROP_TYPE_SBYTE 0x00000002
|
| #define DEVPROP_TYPE_BYTE 0x00000003
|
| #define DEVPROP_TYPE_INT16 0x00000004
|
| #define DEVPROP_TYPE_UINT16 0x00000005
|
| #define DEVPROP_TYPE_INT32 0x00000006
|
| #define DEVPROP_TYPE_UINT32 0x00000007
|
| #define DEVPROP_TYPE_INT64 0x00000008
|
| #define DEVPROP_TYPE_UINT64 0x00000009
|
| #define DEVPROP_TYPE_FLOAT 0x0000000A
|
| #define DEVPROP_TYPE_DOUBLE 0x0000000B
|
| #define DEVPROP_TYPE_DECIMAL 0x0000000C
|
| #define DEVPROP_TYPE_GUID 0x0000000D
|
| #define DEVPROP_TYPE_CURRENCY 0x0000000E
|
| #define DEVPROP_TYPE_DATE 0x0000000F
|
| #define DEVPROP_TYPE_FILETIME 0x00000010
|
| #define DEVPROP_TYPE_BOOLEAN 0x00000011
|
| #define DEVPROP_TYPE_STRING 0x00000012
|
| #define DEVPROP_TYPE_STRING_LIST (DEVPROP_TYPE_STRING|DEVPROP_TYPEMOD_LIST)
|
| #define DEVPROP_TYPE_SECURITY_DESCRIPTOR 0x00000013
|
| #define DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING 0x00000014
|
| #define DEVPROP_TYPE_DEVPROPKEY 0x00000015
|
| #define DEVPROP_TYPE_DEVPROPTYPE 0x00000016
|
| #define DEVPROP_TYPE_BINARY (DEVPROP_TYPE_BYTE|DEVPROP_TYPEMOD_ARRAY)
|
| #define DEVPROP_TYPE_ERROR 0x00000017
|
| #define DEVPROP_TYPE_NTSTATUS 0x00000018
|
| #define DEVPROP_TYPE_STRING_INDIRECT 0x00000019
|
|
|
|
|
|
|
|
|
| #define MAX_DEVPROP_TYPE 0x00000019
|
| #define MAX_DEVPROP_TYPEMOD 0x00002000
|
|
|
|
|
|
|
|
|
| #define DEVPROP_MASK_TYPE 0x00000FFF
|
| #define DEVPROP_MASK_TYPEMOD 0x0000F000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| typedef CHAR DEVPROP_BOOLEAN, *PDEVPROP_BOOLEAN;
|
| #define DEVPROP_TRUE ((DEVPROP_BOOLEAN)-1)
|
| #define DEVPROP_FALSE ((DEVPROP_BOOLEAN) 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
| #ifndef DEVPROPKEY_DEFINED
|
| #define DEVPROPKEY_DEFINED
|
|
|
| typedef GUID DEVPROPGUID, *PDEVPROPGUID;
|
| typedef ULONG DEVPROPID, *PDEVPROPID;
|
|
|
| typedef struct _DEVPROPKEY {
|
| DEVPROPGUID fmtid;
|
| DEVPROPID pid;
|
| } DEVPROPKEY, *PDEVPROPKEY;
|
|
|
| #endif
|
|
|
| #ifndef IsEqualDevPropKey
|
| #ifdef __cplusplus
|
| #define IsEqualDevPropKey(a, b) (((a).pid == (b).pid) && IsEqualGUID((a).fmtid, (b).fmtid))
|
| #ifdef _SYS_GUID_OPERATOR_EQ_
|
| extern "C++" {
|
| inline bool operator==(const DEVPROPKEY &a, const DEVPROPKEY &b) { return ((a.pid == b.pid) && (a.fmtid == b.fmtid)); }
|
| inline bool operator!=(const DEVPROPKEY &a, const DEVPROPKEY &b) { return !(a == b); }
|
| }
|
| #endif
|
| #else
|
| #define IsEqualDevPropKey(a, b) (((a).pid == (b).pid) && IsEqualGUID(&(a).fmtid, &(b).fmtid))
|
| #endif
|
| #endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| typedef
|
| #ifdef MIDL_PASS
|
| [v1_enum]
|
| #endif
|
| enum _DEVPROPSTORE {
|
| DEVPROP_STORE_SYSTEM,
|
| DEVPROP_STORE_USER
|
| } DEVPROPSTORE, *PDEVPROPSTORE;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| typedef struct _DEVPROPCOMPKEY {
|
| DEVPROPKEY Key;
|
| DEVPROPSTORE Store;
|
| #ifdef MIDL_PASS
|
| [string] wchar_t *LocaleName;
|
| #else
|
| PCWSTR LocaleName;
|
| #endif
|
| } DEVPROPCOMPKEY, *PDEVPROPCOMPKEY;
|
|
|
| #ifndef IsEqualLocaleName
|
| #define IsEqualLocaleName(a, b) (((a) == (b)) || (((a) != NULL) && ((b) != NULL) && (_wcsicmp((a), (b)) == 0)))
|
| #endif
|
|
|
| #ifndef IsEqualDevPropCompKey
|
| #define IsEqualDevPropCompKey(a, b) (IsEqualDevPropKey((a).Key, (b).Key) && ((a).Store == (b).Store) && IsEqualLocaleName((a).LocaleName, (b).LocaleName))
|
| #ifdef __cplusplus
|
| #ifdef _SYS_GUID_OPERATOR_EQ_
|
| extern "C++" {
|
| inline bool operator==(const DEVPROPCOMPKEY &a, const DEVPROPCOMPKEY &b) { return ((a.Key == b.Key) && (a.Store == b.Store) && IsEqualLocaleName(a.LocaleName, b.LocaleName)); }
|
| inline bool operator!=(const DEVPROPCOMPKEY &a, const DEVPROPCOMPKEY &b) { return !(a == b); }
|
| }
|
| #endif
|
| #endif
|
| #endif
|
|
|
|
|
|
|
|
|
|
|
| typedef struct _DEVPROPERTY {
|
| DEVPROPCOMPKEY CompKey;
|
| DEVPROPTYPE Type;
|
| ULONG BufferSize;
|
| #ifdef MIDL_PASS
|
| [size_is(BufferSize)] BYTE *Buffer;
|
| #else
|
| __field_bcount_opt(BufferSize) PVOID Buffer;
|
| #endif
|
| } DEVPROPERTY, *PDEVPROPERTY;
|
|
|
|
|
|
|
|
|
|
|
|
|
| #define DEVPROPID_FIRST_USABLE 2
|
|
|
| #endif
|
|
|
|
|
| #ifdef DEFINE_DEVPROPKEY
|
| #undef DEFINE_DEVPROPKEY
|
| #endif
|
| #ifdef INITGUID
|
| #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const DEVPROPKEY DECLSPEC_SELECTANY name = { { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }, pid }
|
| #else
|
| #define DEFINE_DEVPROPKEY(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8, pid) EXTERN_C const DEVPROPKEY name
|
| #endif
|
|
|
| #endif
|
| #pragma endregion
|
|
|