So I'm using the following code to dump every extended file attribute to the debug console...
ShellClass shellClass = new ShellClass();
Folder dir = shellClass.NameSpace(Path.GetDirectoryName(sFilePath));
FolderItem item = dir.ParseName(Path.GetFileName(sFilePath));
for (int i = 0; i < 267; i++)
{
System.Debug.WriteLine(dir.GetDetailsOf(item, i));
}
As Shell32 is a non-managed library, I can't embed the DLL resource in the program directly, and it has to generate an interop helper DLL.
Anyone know of the DLLImport command lines for these functions in Shell32 to get around the whole generation of the interop DLL? I've checked pinvoke.net and under the Shell32 entry they either don't have what I'm looking for, or it's not named what I'm expecting.
If it's not possible to use a DLLImport to accomplish this, does anyone know of a way to pull all of the extended attributes about a file using a managed DLL, or at least a way to do it where I don't have to generate a helper DLL and require an installer with an application I'm developing?
Thanks a bunch!