Share via


CreateURLMonikerEx

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function creates a URL moniker from either a full URL or from a base context URL moniker and a partial URL.

Syntax

HRESULT CreateURLMonikerEx(
  LPMONIKER pMkCtx,
  LPCWSTR szURL,
  LPMONIKER* ppmk,
  DWORD dwFlags
);

Parameters

  • pMkCtx
    Pointer to an IMoniker interface of 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
    BSTR value that contains the URL to be parsed.
  • ppmk
    Address of a pointer to an IMoniker interface for the new URL moniker.
  • dwFlags
    DWORD value that specifies which URL parser to use. This can be one of the values shown in the following table.

    Value Description

    URL_MK_LEGACY

    Use the same URL parser as CreateURLMoniker.

    URL_MK_UNIFORM

    Use the updated URL parser.

Return Value

Returns S_OK if successful or an error value otherwise.

Requirements

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later