Partager via


IWMDRMDevice::GetSecureClock

banner art

The GetSecureClock method retrieves the secure clock, so time-based licenses can be enforced.

Syntax

HRESULT GetSecureClock(
  BYTE**  ppbSecureClock,
  DWORD*  pcbSecureClock,
  DWORD*  pdwFlags
);

Parameters

ppbSecureClock

[out]  Retrieved secure clock.

pcbSecureClock

[out]  Size of the secure clock, in bytes.

pdwFlags

[out]  Device status flags. This value must be one of the following flags.

Flag Description
WMDRM_DEVICE_ISWMDRM The device supports Windows Media DRM.
WMDRM_DEVICE_NEEDCLOCK The device needs clock.
WMDRM_DEVICE_REVOKED The device has been revoked.

Return Values

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK The method succeeded.

Requirements

Header: Defined in WMDDRMSP.idl.

Library: mssachlp.lib

See Also