예제 #1
0
        private ulong GetPersistentId(IITObject obj)
        {
            int    high, low;
            object nobj = obj;

            _iTunes.GetITObjectPersistentIDs(ref nobj, out high, out low);
            return(((ulong)high << 32) + (ulong)low);
        }
        public static PersistentID GetTrackPersistentID(IiTunes iTunesApp, IITTrack t)
        {
            int    persistentId_High;
            int    persistentId_Low;
            object refFileTrack = (object)t;

            iTunesApp.GetITObjectPersistentIDs(ref refFileTrack, out persistentId_High, out persistentId_Low);
            return(new PersistentID(persistentId_High, persistentId_Low));
        }