Example #1
0
		extern static IntPtr CFURLCreateFromFSRef (IntPtr allocator, ref FSRef fsref);
Example #2
0
		public static string FSRefToString (ref FSRef fsref)
		{
			IntPtr url = IntPtr.Zero;
			IntPtr str = IntPtr.Zero;
			try {
				url = CFURLCreateFromFSRef (IntPtr.Zero, ref fsref);
				if (url == IntPtr.Zero)
					return null;
				str = CFURLCopyFileSystemPath (url, CFUrlPathStyle.Posix);
				if (str == IntPtr.Zero)
					return null;
				return FetchString (str);
			} finally {
				if (url != IntPtr.Zero)
					Release (url);
				if (str != IntPtr.Zero)
					Release (str);
			}
		}
Example #3
0
		static extern OSStatus LSGetApplicationForURL (IntPtr inURL, RolesMask inRoleMask, out FSRef outAppRef, out IntPtr outAppURL);
Example #4
0
 private extern static IntPtr CFURLCreateFromFSRef(IntPtr allocator, ref FSRef fsRef);
Example #5
0
 private extern static short FSFindFolder(MacDomains vRefNum, uint folderType, bool createFolder, out FSRef foundRef);
Example #6
0
 private static extern short FSFindFolder(MacDomains vRefNum, uint folderType, bool createFolder, out FSRef foundRef);
Example #7
0
 private static extern IntPtr CFURLCreateFromFSRef(IntPtr allocator, ref FSRef fsRef);