Export (0) Print
Expand All

IWMHeaderInfo::AddMarker method

The AddMarker method adds a marker, consisting of a name and a specific time, to the header section of the ASF file.

Syntax


HRESULT AddMarker(
  [in]  WCHAR *pwszMarkerName,
  [in]  QWORD cnsMarkerTime
);

Parameters

pwszMarkerName [in]

Pointer to a wide-character null-terminated string containing the marker name. Marker names are limited to 5120 wide characters.

cnsMarkerTime [in]

The marker time in 100-nanosecond increments.

Return value

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

Return codeDescription
S_OK

The method succeeded.

NS_E_INVALID_STATE

The object cannot currently be configured.

E_POINTER

pwszMarkerName is not a valid pointer.

E_UNEXPECTED

The method failed for an unspecified reason.

 

Remarks

The writer does not support markers. When accessing IWMheaderInfo from the writer, calls to AddMarker will return E_NOTIMPL.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Version

Windows Media Format 7 SDK, or later versions of the SDK

Header

Wmsdkidl.h (include Wmsdk.h)

Library

Wmvcore.lib;
WMStubDRM.lib (if you use DRM)

See also

IWMHeaderInfo Interface
IWMHeaderInfo::GetMarker
IWMHeaderInfo::RemoveMarker
Markers

 

 

Community Additions

ADD
Show:
© 2014 Microsoft