Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Object Viewer Pin
TylerBrinks9-Mar-05 6:40
TylerBrinks9-Mar-05 6:40 
GeneralRe: Object Viewer Pin
Heath Stewart9-Mar-05 7:22
protectorHeath Stewart9-Mar-05 7:22 
GeneralDelphi / C# COM w/ EL Crypto Pin
Prof AKA8-Mar-05 22:43
Prof AKA8-Mar-05 22:43 
GeneralRe: Delphi / C# COM w/ EL Crypto Pin
Heath Stewart9-Mar-05 7:14
protectorHeath Stewart9-Mar-05 7:14 
QuestionHow to do I Print data Row in Database Table using C#.? Pin
pubududilena8-Mar-05 20:52
pubududilena8-Mar-05 20:52 
AnswerRe: How to do I Print data Row in Database Table using C#.? Pin
Heath Stewart9-Mar-05 7:09
protectorHeath Stewart9-Mar-05 7:09 
GeneralRetrieving extended file properties Pin
Vlad Judys8-Mar-05 18:30
Vlad Judys8-Mar-05 18:30 
GeneralRe: Retrieving extended file properties Pin
Heath Stewart9-Mar-05 6:41
protectorHeath Stewart9-Mar-05 6:41 
This is not functionality easily exposed to .NET, since it's implementation is done in COM. There are "shortcuts" to doing it that may meet your requirements. See http://www.codeproject.com/csharp/ShellID3TagReader.asp[^] for an example. This is a crude way of doing it, however, since you're relying on data provided by the shell that is specific to folders and prone to breaking if new column providers are added.

The best way is to not rely on column providers and instead read the data yourself using the OLE storage functions (which you'll have to P/Invoke) and IPropertySetStorage and IPropertyStorage interfaces. You should be familiar with COM and COM interop with .NET. Read Interoperating with UnmanagedCode[^] if not, then read about Structured Storage[^] in the Platform SDK, especially about the two COM interfaces I mentioned above.

Different file types are handled by different persistence handlers that provide a way to get properties about the file based on what file it is. The default provider stores the extended information - on NTFS only - in an alternate data stream. For Office documents, this information is stored in the documents themselves and the persistence handler for those file types knows how to extract is and expose it in the same way as others. For supported media files, ID3 tag information or other metadata is extracted by other persistence handlers. This is the only sure way - short of knowing how to read extended information from all the different file types yourself, which would be very difficult (especially with proprietary formats) - of getting extended file information.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Retrieving extended file properties Pin
lil dracula9-Mar-05 7:55
susslil dracula9-Mar-05 7:55 
Question[VS .NET] Drag & Drop into Solution Explorer? Pin
spacebass50008-Mar-05 17:59
spacebass50008-Mar-05 17:59 
AnswerRe: [VS .NET] Drag & Drop into Solution Explorer? Pin
Heath Stewart9-Mar-05 6:23
protectorHeath Stewart9-Mar-05 6:23 
GeneralRe: [VS .NET] Drag & Drop into Solution Explorer? Pin
spacebass50009-Mar-05 6:30
spacebass50009-Mar-05 6:30 
GeneralRe: [VS .NET] Drag & Drop into Solution Explorer? Pin
Heath Stewart9-Mar-05 7:48
protectorHeath Stewart9-Mar-05 7:48 
GeneralRe: [VS .NET] Drag & Drop into Solution Explorer? Pin
spacebass50009-Mar-05 8:44
spacebass50009-Mar-05 8:44 
GeneralRe: [VS .NET] Drag & Drop into Solution Explorer? Pin
Heath Stewart9-Mar-05 9:47
protectorHeath Stewart9-Mar-05 9:47 
QuestionHow to do a balloon tip in a tray icon in C# Pin
howardsilver8-Mar-05 17:41
howardsilver8-Mar-05 17:41 
AnswerRe: How to do a balloon tip in a tray icon in C# Pin
TylerBrinks9-Mar-05 6:05
TylerBrinks9-Mar-05 6:05 
AnswerRe: How to do a balloon tip in a tray icon in C# Pin
Kasdoffe9-Mar-05 6:09
Kasdoffe9-Mar-05 6:09 
GeneralExpriences Pin
Toan Thang8-Mar-05 16:49
Toan Thang8-Mar-05 16:49 
GeneralRe: Expriences Pin
Chua Wen Ching8-Mar-05 23:34
Chua Wen Ching8-Mar-05 23:34 
Generalwrap a dll into another dll Pin
ppp0018-Mar-05 15:28
ppp0018-Mar-05 15:28 
GeneralRe: wrap a dll into another dll Pin
mav.northwind8-Mar-05 22:27
mav.northwind8-Mar-05 22:27 
GeneralRe: wrap a dll into another dll Pin
Chua Wen Ching8-Mar-05 23:40
Chua Wen Ching8-Mar-05 23:40 
GeneralRe: wrap a dll into another dll Pin
Heath Stewart9-Mar-05 6:19
protectorHeath Stewart9-Mar-05 6:19 
GeneralListView Pin
Bahadir Cambel8-Mar-05 14:43
Bahadir Cambel8-Mar-05 14:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.