예제 #1
0
        /// <summary>
        /// Gets the file time from the specified <see cref="PropertyKey"/>
        /// </summary>
        /// <param name="key">The property being requested</param>
        /// <returns>The FILETIME duly converted to a DateTime structure</returns>
        public DateTime GetFileTime(PropertyKey key)
        {
            long ft;

            _pItem.GetFileTime(key.MarshalledPointer, out ft);
            return(DateTime.FromFileTime(ft));
        }
예제 #2
0
        private DateTime GetDateTime(IShellItem2 item, PROPERTYKEY property)
        {
            FILETIME ft = item.GetFileTime(property);

            return(Win32FileSystem.GetDateTime(ft));
        }