更新:2007 年 11 月
获取此范围内定义的局部常量。
HRESULT GetConstants(
[in] ULONG32 cConstants,
[out] ULONG32 *pcConstants,
[out, size_is(cConstants),
length_is(*pcConstants)] ISymUnmanagedConstant*
constants[]);
参数
cConstants
[in] pcConstants 参数指向的缓冲区的长度。pcConstants
[out] 指向一个 ULONG32 的指针,该 ULONG32 接收包含这些常量所需要的缓冲区大小(以字符数计)。constants
[out] 存储这些常量的缓冲区。
返回值
如果该方法成功,则返回 S_OK;否则,返回 E_FAIL 或某个其他错误代码。
要求
**头文件:**CorSym.idl