IntPtr pidlroot; ShellLib.IShellFolder pShellFolder; pShellFolder = ShellLib.ShellFunctions.GetDesktopFolder(); ShellLib.ShellApi.SHGetFolderLocation(IntPtr.Zero, (short)ShellLib.ShellApi.CSIDL.CSIDL_DESKTOP, IntPtr.Zero, 0, out pidlroot); string sPath = "C:\\Documents and settings\\giji\\Desktop\\Class1.cs"; uint var = (uint)sPath.Length; IntPtr pidlchild; uint pdw=0; pShellFolder.ParseDisplayName(IntPtr.Zero, IntPtr.Zero, sPath, ref var, out pidlchild,ref pdw); Guid riid = new Guid("BB2E617C-0920-11d1-9A0B-00C04FC2D6C1"); IntPtr ppv; uint len = 1; uint reser = 0; IntPtr[] arry = { pidlchild }; pShellFolder.GetUIObjectOf(IntPtr.Zero, len, arry, riid, ref reser, out ppv);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)