Partager via


CMonikerFile::GetMoniker

Call this function to retrieve a pointer to the current moniker.

IMoniker* GetMoniker( ) const;

Return Value

A pointer to the current moniker interface (IMoniker).

Remarks

Since CMonikerFile is not an interface, the pointer returned does not increment the reference count (through AddRef), and the moniker is released when the CMonikerFile object is released. If you want to hold onto the moniker or release it yourself, you must AddRef it.

Requirements

Header: afxole.h

See Also

Reference

CMonikerFile Class

Hierarchy Chart

Other Resources

CMonikerFile Members