取得在這個範圍內定義的區域常數。
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、CorSym.h