Creates a moniker to bind to a URL.
Syntax
HRESULT CreateMoniker ( LPOLESTR szName, IBindCtx *pBC, IMoniker **ppmk, DWORD dwReserved );
Parameters
- szName
- [in] Address of a string that contains the URL to bind to.
- pBC
- [in] Address of the IBindCtx interface of the optional bind context to be used when creating the moniker. This parameter is currently ignored but may 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 zero.
Return Value
Returns one of the following values:
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 disalloweda bind host is responsible for providing moniker parsing services.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0