Share via


CreateURLMoniker

Send Feedback

Creates a URL moniker from either a full URL string or from a base context URL moniker and a partial URL string.

Syntax

HRESULT CreateURLMoniker(
  LPMONIKER * pMkCtx,
  LPWSTR szURL,
  LPMONIKER FAR  * ppmk
);

Parameters

  • pMkCtx
    [in] Address of the IMoniker interface for the URL moniker to use as the base context when the szURL parameter is a partial URL string. The pMkCtx parameter can be NULL.
  • szURL
    [in] Address of a string value that contains the display name to be parsed.
  • ppmk
    [out] Address of a pointer to an IMoniker interface for the new URL moniker.

Return Values

Returns one of the following values:

  • S_OK
    Success.
  • E_OUTOFMEMORY
    The operation ran out of memory. functions,
  • MK_E_SYNTAX
    A moniker could not be created because szURL does not correspond to valid URL syntax for a full or partial URL. This is uncommon, because most parsing of the URL occurs during binding and because the syntax for URLs is extremely flexible.

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: Smartphone 2002 and later
OS Versions: Windows CE 3.0 and later
Header: urlmon.h
Library: urlmon.lib

See Also

URL Moniker Services Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.