Поделиться через


CreateEntry method

Inserts a new entry in the travel log.

Syntax

var retval = TravelLogStg.CreateEntry(pszUrl, pszTitle, ptleRelativeTo, fPrepend);

Parameters

  • pszUrl [in]
    Type: LPCOLESTR

    A pointer to a string that specifies the URL of the entry to add.

  • pszTitle [in]
    Type: LPCOLESTR

    A pointer to a string that specifies the title of the new entry.

  • ptleRelativeTo [in]
    Type: ITravelLogEntry

    A pointer to the entry before or after which the new entry will be placed.

  • fPrepend [in]
    Type: BOOL

    A BOOL that if TRUE, indicates the new entry is placed before the entry specified by ptleRelativeTo; if FALSE, the new entry is placed after the specified entry.

  • pptle [out]
    Type: ITravelLogEntry

    A pointer to the new entry.

Return value

Type: HRESULT

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

Remarks

CreateEntry creates a new entry with the given properties, and places it in the queue relative to ptleRelativeTo. If ptleRelativeTo is NULL, the new entry is inserted relative to the current entry.