Desktop Functions:

   Smart Device Functions:

Show Recent Changes
Subscribe (RSS)
Misc. Pages
Helpful Tools
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy
mkparsedisplayname (ole32)

C# Signature:

// depricated
static extern int MkParseDisplayName(UCOMIBindCtx pbc,
   [MarshalAs(UnmanagedType.LPWStr)] string szUserName, out uint pchEaten,
   out UCOMIMoniker ppmk);

    /// <summary>
    /// Converts a string into a moniker that identifies
    /// the object named by the string
    /// </summary>
    /// <param name="pbc">A pointer to the IBindCtx interface on the bind context object to be used in this binding operation.</param>
    /// <param name="szUserName">A pointer to the display name to be parsed.</param>
    /// <param name="pchEaten">A pointer to the number of characters of szUserName that were consumed. If the function is successful, *pchEaten is the length of szUserName; otherwise, it is the number of characters successfully parsed.</param>
    /// <param name="ppmk">The address of the IMoniker* pointer variable that receives the interface pointer to the moniker that was built from szUserName. When successful, the function has called AddRef on the moniker and the caller is responsible for calling Release. If an error occurs, the specified interface pointer will contain as much of the moniker that the method was able to create before the error occurred.</param>
    /// <returns></returns>
    [DllImport("ole32.dll", CharSet = CharSet.Unicode)]
    public static extern
    int MkParseDisplayName(IBindCtx pbc, string szUserName, ref int pchEaten, out IMoniker ppmk);

User-Defined Types:




Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!


Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

Access directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version