Share via


IBindHost::CreateMoniker (Windows Embedded CE 6.0)

1/6/2010

This method creates a moniker to bind to a URL.

Syntax

HRESULT CreateMoniker(
  LPOLESTR szName,
  IBindCtx* pBC,
  IMoniker** ppmk,
  DWORD dwReserved
);

Parameters

  • szName
    [in] Pointer to a string that contains the URL to bind to.
  • pBC
    [in] Pointer to the IBindCtx interface of the optional bind context to be used when you create the moniker. This parameter is currently ignored but might be used in the future for passing additional information.
  • ppmk
    [out] Address of a pointer to the IMoniker interface of the moniker that is created.
  • dwReserved
    [in] Reserved. Must be set to 0.

Return Value

This method returns one of the values that are shown in the following table:

Value Description

S_OK

The moniker was successfully obtained and the caller is responsible for the interface pointer.

E_OUTOFMEMORY

There is insufficient memory to create the moniker.

E_UNEXPECTED

An unknown error occurred.

MK_E_SYNTAX

The bind host was unable to parse the string into a moniker because the information in the name was unrecognizable.

Remarks

E_NOTIMPL is disallowed; a bind host is responsible for providing moniker parsing services.

Requirements

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

See Also

Reference

IBindHost
URL Moniker Services Interfaces