microsoft / microsoft/win32metadata

The MSI summary information constant `PID_SECURITY` is defining as `2147483650U` and not `19`.

Open
#2,223 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
149
Avg merge
5d 16h
Merged PRs (30d)
4

Description

In my output from the latest version of CsWin32, the `PID_SECURITY` constant is not defining as 19 as expected and as documented here: https://learn.microsoft.com/en-us/windows/win32/stg/the-summary-information-property-set.
```c#
internal const uint PID_APPNAME = 18U;
internal const uint PID_AUTHOR = 4U;
internal const uint PID_CHARCOUNT = 16U;
internal const uint PID_CODEPAGE = 1U;
internal const uint PID_COMMENTS = 6U;
internal const uint PID_CREATE_DTM = 12U;
internal const uint PID_KEYWORDS = 5U;
internal const uint PID_LASTAUTHOR = 8U;
internal const uint PID_LASTPRINTED = 11U;
internal const uint PID_LASTSAVE_DTM = 13U;
internal const uint PID_PAGECOUNT = 14U;
internal const uint PID_REVNUMBER = 9U;

internal const uint PID_SECURITY = 2147483650U;

internal const uint PID_SUBJECT = 3U;
internal const uint PID_TEMPLATE = 7U;
internal const uint PID_TITLE = 2U;
internal const uint PID_WORDCOUNT = 15U;
```

Contributor guide

Open the contributing guide

Research direction

Start by comparing the CsWin32-generated C# declaration for PID_SECURITY with the Windows summary-information property-set documentation linked in the issue. Trace the win32metadata input that produces this constant and verify the generated output reports 19U rather than 2147483650U.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, csharp
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.