summaryrefslogtreecommitdiffhomepage
path: root/src/internal/w32lib_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/w32lib_impl.h')
-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)))); \
+/************************************************************************************************/