Using Shellclass to get the implementation method of file attribute details _c language
Source: Internet
Author: User
referencing COM components First Microsoft Shell Controls and automation
you need to pay attention here. DLL's properties embed Interop Type set to False
Otherwise, the interop type exception is caused
The code is as follows Shellclass sh = new Shellclass ();
Folder dir = sh. NameSpace (Path.getdirectoryname (sfile));
FolderItem item = dir. ParseName (Path.getfilename (sfile));
String det = dir. Getdetailsof (item, ICOL);
icol corresponding File detail attribute rollup ID => Detail-name
0 => Name
1 => Size
2 => Type
3 => Date Modified
4 => Date created
5 => Date Accessed
6 => Attributes
7 => Offline Status
8 => Offline Availability
9 => Perceived type
Ten => Owner
One => kinds
=> Date taken
=> Artists
=> Album
=> year
=> genre
=> Conductors
=> Tags
=> Rating
=> Authors
=> Title
=> Subject
=> Categories
=> Comments
=> Copyright
Num => #
=> Length
=> Bit Rate
=> Protected
=> Camera Model
=> Dimensions
=> Camera Maker
=> Company
=> File Description
=> Program Name
=> Duration
Panax => is online
=> is recurring
=> Location
=> Optional attendee Addresses
=> Optional Attendees
=> Organizer Address
=> Organizer Name
=> Reminder Time
=> Required attendee Addresses
=> Required Attendees
=> Resources
=> free/busy Status
=> Total size
=> account Name
Wuyi => Computer
=> Anniversary
=> Assistant ' s name
=> Assistant ' s phone
=> Birthday
=> Business Address
=> Business City
=> Business country/region
=> Business p.o. Box
=> Business Postal Code
=> Business State or province
=> Business Street
=> Business Fax
=> Business Home Page
=> Business Phone
=> Callback Number
=> Car Phone
=> Children
=> Company Main Phone
=> Department
=> e-mail address
E-mail2 =>
=> E-MAIL3
=> e-mail list
=> e-Mail display name
=> File as
=>-Name
=> Full Name
=> Gender
=> Given Name
Bayi => Hobbies
=> Home Address
=> Home city
=> Home Country/region
=> Home P.O Box
=> Home Postal Code
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.