Rediger

Del via


IWMDRMDevice::GetSecureClock method

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

Syntax

HRESULT GetSecureClock(
  [out] BYTE  **ppbSecureClock,
  [out] DWORD *pcbSecureClock,
  [out] 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 value

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

Requirement Value
Header
WMDDRMSP.idl
Library
Mssachlp.lib

See also

GetSecureClockChallenge

IWMDRMDevice Interface

SetSecureClockResponse