KsGetCorrelatedTime 方法从基础时钟中检索当前时间和相关系统时间。
语法
HRESULT KsGetCorrelatedTime(
[out] KSCORRELATED_TIME *CorrelatedTime
);
参数
[out] CorrelatedTime
指向接收包含当前时钟时间以及相关系统时间的 KSCORRELATED_TIME 结构的变量的指针。
返回值
如果成功,则返回 NOERROR;否则,返回错误代码。
言论
KsGetCorrelatedTime 方法检索原子作中的当前时间和相关系统。
代理使用 KSPROPERTY_CLOCK_CORRELATEDTIME 属性检索相关时间。
要求
| 要求 | 价值 |
|---|---|
| 目标平台 | 桌面 |
| 标头 | ksproxy.h (包括 Ksproxy.h) |