共用方式為


Current method

Retrieves the current segment.

Syntax

HRESULT retVal = object.Current(ppISegment);

Parameters

  • ppISegment [out]
    Type: ISegment

    Address of a pointer to a variable that receives an ISegment interface pointer for the current segment's interface.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The ppISegment parameter will point to an ISegment or IElementSegment interface, depending on the type of segments in the segment list, after this method returns.