except that if you look at .doc in the registry, it doesnt actually tell you its a "Word Document" it says Word.Document.x x = version
Jeremy -----Original Message----- From: "Paul Eggleton" <[EMAIL PROTECTED]> To: Multiple recipients of list delphi <[EMAIL PROTECTED]> Date: Fri, 17 Jan 2003 09:10:06 +1300 Subject: RE: [DUG]: SHGetFileInfo and File Type > 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 =3D Word Document etc. > >=20 > > Anyone know how to do this? > >=20 > > 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/ --------------------------------------------------------------------------- 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/
