枚举指定 TypeDef 令牌的事件定义令牌。
Syntax
HRESULT EnumEvents (
[in, out] HCORENUM *phEnum,
[in] mdTypeDef td,
[out] mdEvent rEvents[],
[in] ULONG cMax,
[out] ULONG *pcEvents
);
Parameters
phEnum [in, out]指向枚举器的指针。
td [in]要枚举其事件定义的 TypeDef 标记。
rEvents [out]返回的事件数组。
cMax [in]数组的最大大小 rEvents 。
pcEvents [out]返回 rEvents的实际事件数。
Return Value
| HRESULT | Description |
|---|---|
S_OK |
EnumEvents 已成功返回。 |
S_FALSE |
没有要枚举的事件。 在这种情况下, pcEvents 为零。 |
Requirements
平台: 请参阅 .NET 支持的作系统。
Header: Cor.h
Library: CorGuids.lib