From b72dcfe91ee97273d911d1ee38b6fd016821fd61 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 20 Nov 2017 04:07:14 +0000 Subject: (mis)guid'ed data: pkey_app_user_model: initial commit. --- src/internal/w32lib_impl.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/internal') 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)))); \ +/************************************************************************************************/ -- cgit v1.2.3