diff options
author | midipix <writeonce@midipix.org> | 2017-11-20 04:07:14 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-11-22 19:33:57 -0500 |
commit | b72dcfe91ee97273d911d1ee38b6fd016821fd61 (patch) | |
tree | bfb0bb3395d125dca9977bf93724af25c0f60282 /src | |
parent | 2891def6e1a0ca9de9583d372720fc203c18b509 (diff) | |
download | w32lib-b72dcfe91ee97273d911d1ee38b6fd016821fd61.tar.bz2 w32lib-b72dcfe91ee97273d911d1ee38b6fd016821fd61.tar.xz |
(mis)guid'ed data: pkey_app_user_model: initial commit.
Diffstat (limited to 'src')
-rw-r--r-- | src/internal/w32lib_impl.h | 12 | ||||
-rw-r--r-- | src/pkey/w32lib_pkey_app_user_model.c | 50 |
2 files changed, 62 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)))); \ +/************************************************************************************************/ diff --git a/src/pkey/w32lib_pkey_app_user_model.c b/src/pkey/w32lib_pkey_app_user_model.c new file mode 100644 index 0000000..43d9517 --- /dev/null +++ b/src/pkey/w32lib_pkey_app_user_model.c @@ -0,0 +1,50 @@ +#include <w32lib/w32lib.h> +#include "w32lib_impl.h" + +/***************************************************************************/ +#define W32LIB_APP_USER_MODEL_PKEY( \ + mname,lname, \ + u32,u16a,u16b, \ + u8a,u8b,u8c,u8d,u8e,u8f,u8g,u8h, \ + id) \ + W32LIB_PKEY (W32LIB_HIDDEN_NAME(pkey_app_user_model,mname), \ + W32LIB_NAMESPACE_NAME(pkey_app_user_model,mname), \ + W32LIB_LEGACY_NAME(PKEY_AppUserModel,lname), \ + u32,u16a,u16b, \ + u8a,u8b,u8c,u8d,u8e,u8f,u8g,u8h, \ + id) \ +/***************************************************************************/ + +W32LIB_APP_USER_MODEL_PKEY( \ + id,ID, \ + 0x9f4c2855,0x9f79,0x4b39, \ + 0xa8,0xd0,0xe1,0xd4,0x2d,0xe1,0xd5,0xf3, \ + 5) + +W32LIB_APP_USER_MODEL_PKEY( \ + prevent_pinning, \ + PreventPinning, \ + 0x9f4c2855,0x9f79,0x4b39, \ + 0xa8,0xd0,0xe1,0xd4,0x2d,0xe1,0xd5,0xf3, \ + 9) + +W32LIB_APP_USER_MODEL_PKEY( \ + relaunch_command, \ + RelaunchCommand, \ + 0x9f4c2855,0x9f79,0x4b39, \ + 0xa8,0xd0,0xe1,0xd4,0x2d,0xe1,0xd5,0xf3, \ + 2) + +W32LIB_APP_USER_MODEL_PKEY( \ + relaunch_icon_resource, \ + RelaunchIconResource, \ + 0x9f4c2855,0x9f79,0x4b39, \ + 0xa8,0xd0,0xe1,0xd4,0x2d,0xe1,0xd5,0xf3, \ + 3) + +W32LIB_APP_USER_MODEL_PKEY( \ + relaunch_display_name_resource, \ + RelaunchDisplayNameResource, \ + 0x9f4c2855,0x9f79,0x4b39, \ + 0xa8,0xd0,0xe1,0xd4,0x2d,0xe1,0xd5,0xf3, \ + 4) |