getting files Properties

I have the functions to get the properties of the files. ( like the information showing for the file when you right click on the file name, properties, general)

but only works for excel and word but not for other files

I found those the functions on microsoft.com

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/stg/stg/enumall_sample.asp

and the other link is
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnolegen/html/msdn_propset.asp

how can i get the all kinds of files' properties?

thank you
[596 byte] By [BeePo] at [2007-11-18 13:36:35]
# 1 Re: getting files Properties
Use the FindFirstFile function. Just get the name of the file, call FindFirstFile using the file name, and then get the information stored in the WIN32_FIND_DATA structure that is returned from FindFirstFile.

Search MSDN for FindFirstFile.

Regards,

Paul McKenzie
Paul McKenzie at 2007-11-11 2:09:50 >
# 2 Re: getting files Properties
no.. this is different... i want to get the associate file name..
let's say, you have c:\sample.doc

you right click on the file name->properties->general
the information you might see is following

name of file: sample.doc
type of file: Microsoft Word Document
open with : Microsoft Word for Windows
...
...
etc.
I only want to get the associate file to open with sample.doc
even without the file extension, sample, i want to know the way taht can give me "Microsoft Word" application to use to open with since sample.doc file is already created with Microsfot Word.

So the above link gave me the information that i wanted.. but only for Word and Excel files..

Can you give me more suggestion to find out what type( Word file, Excel file, powerpoint file, adobe file, tiff file, jpeg file, and etc) of file is?
BeePo at 2007-11-11 2:10:48 >