gpt4 book ai didi

c++ - 如何将Windows ProductType转换为名称?

转载 作者:行者123 更新时间:2023-12-01 14:52:37 25 4
gpt4 key购买 nike

GetProductInfo() 函数返回pdwReturnedProductType作为数字类型参数。

有功能将此数字转换为名称吗?

或者,您可以向我建议此类产品名称常量的完整列表吗?
MSDN文章缺少某些值,例如0x59-“Industry Pro(嵌入式)”。

最佳答案

查看MSDN上的OSEdition Enumeration定义,它具有您要查找的数值,包括0x59:

This section provides the product enumerations for the OSEdition element.


#define PRODUCT_EMBEDDED_INDUSTRY 0x00000059

AFAIK,没有将这些数值转换为人类可读名称的功能。

关于c++ - 如何将Windows ProductType转换为名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62117987/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com