|
|
05785e |
#include <stdint.h>
|
|
|
05785e |
|
|
|
05785e |
struct w32lib_guid {
|
|
|
05785e |
uint32_t data1;
|
|
|
05785e |
uint16_t data2;
|
|
|
05785e |
uint16_t data3;
|
|
|
05785e |
unsigned char data4[8];
|
|
|
05785e |
};
|
|
|
05785e |
|
|
|
b72dcf |
struct w32lib_pkey {
|
|
|
b72dcf |
struct w32lib_guid guid;
|
|
|
b72dcf |
uint32_t propid;
|
|
|
b72dcf |
};
|
|
|
b72dcf |
|
|
|
05785e |
#define W32LIB_QUOTE(name) #name
|
|
|
05785e |
|
|
|
05785e |
#define W32LIB_HIDDEN_JOIN(prefix,name) __ ## prefix ## _ ## name
|
|
|
05785e |
#define W32LIB_NAMESPACE_JOIN(prefix,name) w32lib ## _ ## prefix ## _ ## name
|
|
|
05785e |
#define W32LIB_LEGACY_JOIN(prefix,name) prefix ## _ ## name
|
|
|
05785e |
|
|
|
05785e |
#define W32LIB_HIDDEN_NAME(prefix,name) W32LIB_HIDDEN_JOIN(prefix,name)
|
|
|
05785e |
#define W32LIB_NAMESPACE_NAME(prefix,name) W32LIB_NAMESPACE_JOIN(prefix,name)
|
|
|
05785e |
#define W32LIB_LEGACY_NAME(prefix,name) W32LIB_LEGACY_JOIN(prefix,name)
|
|
|
05785e |
|
|
|
05785e |
/************************************************************************************************/
|
|
|
05785e |
#define W32LIB_GUID(hname,mname,lname,u32,u16a,u16b,u8a,u8b,u8c,u8d,u8e,u8f,u8g,u8h) \
|
|
|
05785e |
static const struct w32lib_guid hname = {u32,u16a,u16b,{u8a,u8b,u8c,u8d,u8e,u8f,u8g,u8h}}; \
|
|
|
05785e |
extern const struct w32lib_guid mname __attribute((weak,alias(W32LIB_QUOTE(hname)))); \
|
|
|
05785e |
extern const struct w32lib_guid lname __attribute((weak,alias(W32LIB_QUOTE(hname)))); \
|
|
|
05785e |
/************************************************************************************************/
|
|
|
b72dcf |
|
|
|
b72dcf |
/************************************************************************************************/
|
|
|
b72dcf |
#define W32LIB_PKEY(hname,mname,lname,u32,u16a,u16b,u8a,u8b,u8c,u8d,u8e,u8f,u8g,u8h,id) \
|
|
|
b72dcf |
static const struct w32lib_pkey hname = {{u32,u16a,u16b,{u8a,u8b,u8c,u8d,u8e,u8f,u8g,u8h}},id}; \
|
|
|
b72dcf |
extern const struct w32lib_pkey mname __attribute((weak,alias(W32LIB_QUOTE(hname)))); \
|
|
|
b72dcf |
extern const struct w32lib_pkey lname __attribute((weak,alias(W32LIB_QUOTE(hname)))); \
|
|
|
b72dcf |
/************************************************************************************************/
|