Skip to content

Generated OS_PRODUCT_TYPE misses values #1464

@MarcelVersteeg

Description

@MarcelVersteeg

Actual behavior

When generating the enumeration OS_PRODUCT_TYPE, the resulting enumeration misses a few entries. The missing values are:

  • PRODUCT_IOTENTERPRISE
  • PRODUCT_IOTENTERPRISE_S
  • PRODUCT_PPI_PRO
  • PRODUCT_PRO_FOR_EDUCATION
  • PRODUCT_SERVERRDSH

Expected behavior

All entries listed on https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getproductinfo are present in the enumeration.

Repro steps

  1. NativeMethods.txt content:
GetProductInfo
  1. NativeMethods.json content (if present):
{
    "$schema": "https://aka.ms/CsWin32.schema.json",
    "allowMarshaling": false,
    "className": "WindowsApi",
    "emitSingleFile": false,
    "friendlyOverloads": {
        "enabled": true
    },
    "multiTargetingFriendlyAPIs": true,
    "public": false,
    "useSafeHandles": false,
    "wideCharOnly": true
}
  1. Any of your own code that should be shared?

Context

  • CsWin32 version: 0.3.205
  • Win32Metadata version (if explicitly set by project): 63.0.31-preview
  • Target Framework: .NET 9
  • LangVersion (if explicitly set by project): latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions