summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-11-20 04:07:14 +0000
committermidipix <writeonce@midipix.org>2017-11-22 19:33:57 -0500
commitb72dcfe91ee97273d911d1ee38b6fd016821fd61 (patch)
treebfb0bb3395d125dca9977bf93724af25c0f60282 /src/internal
parent2891def6e1a0ca9de9583d372720fc203c18b509 (diff)
downloadw32lib-b72dcfe91ee97273d911d1ee38b6fd016821fd61.tar.bz2
w32lib-b72dcfe91ee97273d911d1ee38b6fd016821fd61.tar.xz
(mis)guid'ed data: pkey_app_user_model: initial commit.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/w32lib_impl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/internal/w32lib_impl.h b/src/internal/w32lib_impl.h
index 9e5bcec..1033652 100644
--- a/src/internal/w32lib_impl.h
+++ b/src/internal/w32lib_impl.h
@@ -7,6 +7,11 @@ struct w32lib_guid {
unsigned char data4[8];
};
+struct w32lib_pkey {
+ struct w32lib_guid guid;
+ uint32_t propid;
+};
+
#define W32LIB_QUOTE(name) #name
#define W32LIB_HIDDEN_JOIN(prefix,name) __ ## prefix ## _ ## name
@@ -23,3 +28,10 @@ static const struct w32lib_guid hname = {u32,u16a,u16b,{u8a,u8b,u8c,u8d,u8e,u8f,
extern const struct w32lib_guid mname __attribute((weak,alias(W32LIB_QUOTE(hname)))); \
extern const struct w32lib_guid lname __attribute((weak,alias(W32LIB_QUOTE(hname)))); \
/************************************************************************************************/
+
+/************************************************************************************************/
+#define W32LIB_PKEY(hname,mname,lname,u32,u16a,u16b,u8a,u8b,u8c,u8d,u8e,u8f,u8g,u8h,id) \
+static const struct w32lib_pkey hname = {{u32,u16a,u16b,{u8a,u8b,u8c,u8d,u8e,u8f,u8g,u8h}},id}; \
+extern const struct w32lib_pkey mname __attribute((weak,alias(W32LIB_QUOTE(hname)))); \
+extern const struct w32lib_pkey lname __attribute((weak,alias(W32LIB_QUOTE(hname)))); \
+/************************************************************************************************/