microsoft / microsoft/win32metadata
Generated metadata is missing values
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 149
- Avg merge
- 5d 16h
- Merged PRs (30d)
- 4
Description
Hello,
I am trying to generate the winmd metadata for some .h file which has a non-primitive const variable of type PROPERTYKEY (part of the namespace Windows.Win32.UI.Shell.PropertiesSystem) and defined in the wtypes.h file of the Windows SDK.
```
EXTERN_C const PROPERTYKEY my_prop_key= {{0x89f1fe39, 0x3acc, 0x4b73, 0x88, 0x8d, 0x3f, 0x70, 0xb1, 0x6f, 0x32, 0xac}};
``
```
I am following the instructions as documented here and these variables are missing from my metadata. Other kids of variables are successfully generated, such as
EXTERN_C const GUID my_guid = {0x89f1fe39, 0x3acc, 0x4b73, 0x88, 0x8d, 0x3f, 0x70, 0xb1, 0x6f, 0x32, 0xac};
What am I doing wrong? Should I add anything specific in the .proj file for this kind of type? I do see properties in the Windows.win32 metadata so I guess it should be possible.
Thanks a lot,
Ghila
Contributor guide
Research direction
Start with the documented winmd generation instructions and reproduce the case using the .h declaration from wtypes.h. Compare metadata output for the PROPERTYKEY constant with the working GUID example, and check whether the .proj configuration affects either case. Done means the non-primitive PROPERTYKEY variable appears in the generated metadata or the limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100