Desktop Functions: Smart Device Functions:
|
STRRET (Structures)
C# Definition:public struct STRRET {
[StructLayout(LayoutKind.Explicit)] } VB Definition:
Structure STRRET User-Defined Field Types:None. Notes:Example: // Structure used to return the display name to STRRET pDisplayName; String DisplayName; SHFILEINFO m_shfi = new SHFILEINFO(); // Request the string as a char although Windows will likely ignore // the request. pDisplayName.uType = (uint)STRRET_TYPE.STRRET_CSTR; // Get the "normal" display name. iShellFolder.GetDisplayNameOf(pidlItems[0], SHGNO.SHGDN_NORMAL,
out pDisplayName); System.Text.StringBuilder sbDisplayName = new System.Text.StringBuilder(256); // Get the display name from the STRRET structure WindowsAPI.StrRetToBuf(ref pDisplayName, pidlItems[0],
sbDisplayName, (uint)sbDisplayName.Capacity); DisplayName = sbDisplayName.ToString(); Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed. |
|