Returns a moniker that, when composed onto the end of the first specified
moniker (or one with a similar structure), yields the second specified moniker.
This function is intended for use only by IMoniker::RelativePathTo
| LPMONIKER pmkSrc,
||//Moniker identifying source
| LPMONIKER pmkDest,
||//Moniker identifying destination
| LPMONIKER FAR * ppmkRelPath,
||//Receives relative moniker
| BOOL dwReserved
||//Reserved; must be non-zero
Points to the moniker that, when composed with the relative moniker to be
created, produces pmkDest
. This moniker identifies the "source" of the relative moniker to be created.
Points to the moniker to be expressed relative to pmkSrc
. This moniker identifies the "destination" of the relative moniker to be
Receives a pointer to the relative moniker. The returned pointer is NULL if an
error occurs; if non-NULL, the function has called IUnknown::AddRef
on the parameter and the caller is responsible for calling IUnknown::Release
Reserved; must be non-zero.
Indicates a meaningful relative path has been returned.
Indicates the only form of the relative path is the other moniker.
Indicates that pmkSrc
is a relative moniker, such as an item moniker. pmkSrc
must be composed with the moniker of its container before a relative path can
Specifies the parameter dwReserved
was set to zero.
Indicates an unexpected error occurred.
Indicates insufficient memory.
only if you are writing your own moniker class (implementing the IMoniker
interface). Call this function from your implementation of the IMoniker::RelativePathTo
Your implementation of IMoniker::RelativePathTo
should first check whether the other moniker is of a type you recognize and
handle in a special way. If not, you should call MonikerRelativePathTo
, passing itself as pmkThis
and the other moniker as pmkOther
correctly handles the cases where either moniker is a generic composite.
You should call this function only if pmkSrc
are both absolute monikers, where an absolute moniker is either a file
moniker or a generic composite whose left-most component is a file moniker, and where
the file moniker represents an absolute path. Do not call this function on
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database