Partager via


AFX_GLOBAL_DATA::ShellCreateItemFromParsingName

Creates and initializes a Shell item object from a parsing name.

HRESULT ShellCreateItemFromParsingName(
   PCWSTR pszPath,
   IBindCtx *pbc,
   REFIID riid,
   void **ppv
);

Parameters

  • pszPath
    [in] A pointer to a display name.

  • pbc
    A pointer to a bind context that controls the parsing operation.

  • riid
    A reference to an interface ID.

  • ppv
    [out] When this function returns, contains the interface pointer requested in riid. This will typically be IShellItem or IShellItem2.

Return Value

Returns S_OK if successful; an error value otherwise.

Requirements

Header: afxglobals.h

See Also

Reference

AFX_GLOBAL_DATA Structure