Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This method retrieves the moniker that refers to the object's persistent state.

Syntax

HRESULT GetCurMoniker(
  IMoniker** 
ppimkName
);

Parameters

ppimkName

[out] Address of a pointer to the IMonikerinterface that references the object's current persistent state.

Return Value

Returns S_OK if a valid absolute path was successfully returned or E_INVALIDARG if the ppimkNameparameter is invalid.

Remarks

Typically, this method returns the moniker last passed to the object by means of the IPersistMoniker::Load, IPersistMoniker::Save, or IPersistMoniker::SaveCompletedmethod.

Requirements

Header urlmon.h, urlmon.idl
Library urlmon.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Pocket PC 2000 and later, Smartphone 2002 and later