IDiaPropertyStorage::ReadPropertyNames

retrieves 对应的字符串名称特定属性标识符。

HRESULT ReadPropertyNames (
   ULONG         cpropid,
   PROPID const* rgpropid,
   BSTR*         rglpwstrName
);

参数

  • cpropid
    [in] 属性 ID 数。 rgpropid的。

  • rgpropid
    [in] 数组属性 ID 获取名称 (PROPID 在 WTypes.h 中定义为 ULONG)。

  • rglpwstrName
    [in, out] 属性名称指定的属性 ID。必须预先指定数组保留属性名称的请求数,并且必须能够容纳至少 cpropidBSTR 字符串。

返回值

如果成功,则返回; S_OK否则返回错误代码。

备注

必须释放返回的属性名称 (通过调用 SysFreeString 函数),在不需要时。

请参见

参考

IDiaPropertyStorage