Share via


URLs, Namespaces, and Monikers (Windows CE 5.0)

Send Feedback

A URL follows the syntax described in RFC 1738, which specifies a protocol scheme followed by a scheme-specific portion (<scheme><scheme-specific portion>). For example, in the URL https://www.microsoft.com/, http is the scheme and //www.microsoft.com/ is the scheme-specific portion.

The beginning of the scheme-specific portion of the URL contains the server name. This portion of the URL is often referred to as the URL namespace.

A moniker is a COM object that identifies an object and provides services to allow other components to obtain a pointer to that object. There are two ways of viewing the use of monikers: as a moniker client, which is a component that uses a moniker to get a pointer to another object, and as a moniker provider, which is a component that supplies monikers identifying its objects to moniker clients.

COM uses monikers to connect to, and activate, objects, whether they are in the same machine or across a network. For example COM uses monikers to establish a network connection. They are also used to identify, connect to, and run OLE compound document link objects. In this case, the link source acts as the moniker provider and the container holding the link object acts as the moniker client.

The COM moniker architecture also provides a convenient programming model for working with URLs. The moniker architecture supports extensible and complete name parsing through the MkParseDisplayNameEx function and the IParseDisplayName and IMoniker interfaces, as well as printable names through the IMoniker::GetDisplayName method. Because URLs frequently refer to resources across high-latency networks, binding a moniker to a URL synchronously impacts performance because the process has to wait for responses from the network before completing the binding. For this reason, the URL moniker class supports asynchronous as well as synchronous binding.

See Also

URL Moniker Services Application Development

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.