Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You have to use the <code>IBindCtx</code> parameter to pass additional data to the parser, in this case your own file metadata so <code>SHParseDisplayName()</code> will not try to access a real file to get the metadata. This is described in the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb775090.aspx" rel="nofollow"><code>IShellFolder::ParseDisplayName()</code></a> and <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb762134.aspx" rel="nofollow"><code>SHCreateItemFromParsingName()</code></a> documentations:</p> <blockquote> <p>A pointer to a bind context used to pass parameters as inputs and outputs to the parsing function. These passed parameters are often specific to the data source and are documented by the data source owners. <strong>For example, the file system data source accepts the name being parsed (as a <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa365740.aspx" rel="nofollow">WIN32_FIND_DATA</a> structure), using the <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb762592.aspx" rel="nofollow">STR_FILE_SYS_BIND_DATA</a> bind context parameter.</strong> STR_PARSE_PREFER_FOLDER_BROWSING can be passed to indicate that URLs are parsed using the file system data source when possible. <strong>Construct a bind context object using <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms678542.aspx" rel="nofollow">CreateBindCtx</a> and populate the values using <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms687254.aspx" rel="nofollow">IBindCtx::RegisterObjectParam</a>. See <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/bb762592.aspx" rel="nofollow">Bind Context String Keys</a> for a complete list of these.</strong></p> </blockquote> <p>And outlined in detail on the MSDN "Old New Thing" blog:</p> <p><a href="http://blogs.msdn.com/b/oldnewthing/archive/2013/05/03/10415778.aspx" rel="nofollow">Creating a simple pidl: For the times you care enough to send the very fake</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload