G
Guest
I've seen many examples of how to call SHGetFileInfo in shell32.dll to get a
files associated icon, but I can't find anywhere how to get the file
information (size, last date modified, etc, etc) out of shell32 using pinvoke.
I have however seen how to get this information using COM:
Shell32.Shell shell = new Shell32.ShellClass();
Shell32.Folder folder = shell.NameSpace("C:\\");
Shell32.FolderItem folderItem = folder.ParseName("test.doc");
but can you get this using pinvoke? If not, is it bad to use both COM and
pinvoke at the same time?
files associated icon, but I can't find anywhere how to get the file
information (size, last date modified, etc, etc) out of shell32 using pinvoke.
I have however seen how to get this information using COM:
Shell32.Shell shell = new Shell32.ShellClass();
Shell32.Folder folder = shell.NameSpace("C:\\");
Shell32.FolderItem folderItem = folder.ParseName("test.doc");
but can you get this using pinvoke? If not, is it bad to use both COM and
pinvoke at the same time?