Posted By: WillemM | Aug 22nd @ 10:32 AM
page 1 of 1
Comments: 2 | Views: 818
WillemM
WillemM
There's nothing special about a mac, they're just sexy...
Something has really been bothering me the last few nights. I am creating a small application for myself in WPF to show photos. The idea is that I have folders on my harddrive that contain photos all tagged etc. and I want to show them in the same structure (Folder = album) in my application.

Also I have a few in the application that lets me show my pictures on a sort of timeline, where I can filter on year and month.
All this is pretty cool, but there's one really annoying thing that doesn't work.

In Windows Vista you can attach tags to your files and I use this feature pretty often. The problem is however, I can't read them back using any form of API. I use C# to write my application, but as long as there is a win32 API I'm fine, because P/Invoke isn't really that much of a problem for me.

Anyone know the API functions for reading file tags in Windows Vista? I have tried MSDN, but got nowhere.
DCMonkey
DCMonkey
Monkey see, monkey do, monkey will destroy you!
Use the Windows Search API
http://msdn.microsoft.com/en-us/library/bb331575(VS.85).aspx

You can use COM Interop to acess it from managed code:
http://msdn.microsoft.com/en-us/library/bb286799(VS.85).aspx

I think the "Tags" field is System.Keywords (It's an array)
http://msdn.microsoft.com/en-us/library/bb787519(VS.85).aspx
page 1 of 1
Comments: 2 | Views: 818