vss wrote on Friday, 17 January 2003 8:59 a.m.:
> Hi all.
> I want to get the file type of a given extension so I was
> using "SHGetFileInfo"
> The problem IS, that in order for this to work, the file must reside
> on a drive.
> I want to beable to pass in a file name with no extension and have it
> return the file type. i.e .DOC = Word Document etc.
>
> Anyone know how to do this?
>
I don't know if you can do this from an API call, but one way to do it
would be to read the information from the registry
(HKEY_CLASSES_ROOT\.doc).
Cheers,
Paul
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/