VarMonthName 函数 (oleauto.h)
返回包含本地化月份名称的字符串。
语法
HRESULT VarMonthName(
[in] int iMonth,
[in] int fAbbrev,
[in] ULONG dwFlags,
[out] BSTR *pbstrOut
);
参数
[in] iMonth
以 1 到 12 的数字表示月份。
[in] fAbbrev
如果为零,则使用完整 (非缩写) 月份名称。 如果为非零,则使用月份名称的缩写。
[in] dwFlags
VAR_CALENDAR_HIJRI是唯一可以设置的标志。
[out] pbstrOut
接收表示变体的格式化字符串。
返回值
此函数可以返回其中一个值。
返回代码 | 说明 |
---|---|
|
成功。 |
|
一个或多个参数无效。 |
要求
要求 | 值 |
---|---|
目标平台 | Windows |
标头 | oleauto.h |
Library | OleAut32.lib |
DLL | OleAut32.dll |