#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h> 

#import <Foundation/Foundation.h>

Boolean GetMetadataForFile(void* thisInterface, 
			   CFMutableDictionaryRef attributes, 
			   CFStringRef contentTypeUTI,
			   CFStringRef pathToFile)
{
  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
  NSDictionary *metadata;
  metadata = [NSDictionary dictionaryWithContentsOfFile:(NSString*)pathToFile];
  for (NSString *key in [metadata allKeys]) {
    [(id)attributes setObject:[metadata objectForKey:key] forKey:key];
  }
  [pool release], pool = nil;
  return TRUE;
}
