How can we obtain the PIDLs of some files in a folder, if we got the IShellFolder Interface of that folder?
I used IShellFolder::GetAttributesOf Method, but it doesn't work. Is there any mistake in the following code? Please suggest.
ShellLib.IShellFolder pShellFolder;
phellFolder = ShellLib.ShellFunctions.GetDesktopFolder();
IntPtr pidlRoot;
ShellLib.ShellApi.SHGetFolderLocation( IntPtr.Zero, (short)ShellLib.ShellApi.CSIDL.CSIDL_SYSTEM, IntPtr.Zero,0,out pidlRoot);
IntPtr[] arry ={ };
uint rgf = 0;
pShellFolder.GetAttributesOf(1, arry, ref rgf);