public static extern Int32 StrRetToBuf( ref STRRET pstr, // Pointer to the STRRET structure. When the function returns, this pointer will no // longer be valid. IntPtr pidl, // Pointer to the item's ITEMIDLIST structure. StringBuilder pszBuf, // Buffer to hold the display name. It will be returned as a null-terminated // string. If cchBuf is too small, the name will be truncated to fit. UInt32 cchBuf); // Size of pszBuf, in characters. If cchBuf is too small, the string will be
public static extern Int32 StrRetToBuf( ref STRRET pstr, IntPtr pidl, StringBuilder pszBuf, UInt32 cchBuf);
public static extern Int32 StrRetToBSTR( ref STRRET pstr, // Pointer to a STRRET structure. IntPtr pidl, // Pointer to an ITEMIDLIST uniquely identifying a file object or subfolder relative // to the parent folder. [MarshalAs(UnmanagedType.BStr)] out String pbstr); // Pointer to a variable of type BSTR that contains the converted string.
public static extern Int32 StrRetToBSTR( ref STRRET pstr, IntPtr pidl, [MarshalAs(UnmanagedType.BStr)] out String pbstr);