🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2337

Re: Getting file association info

#2337
From: John Grant
Date: Mon, 25 Jan 1993 23:45
15 lines
1172 bytes
In article <51656@shamash.cdc.com> paul@svl.cdc.com (Paul Kohlmiller) writes:
>In windows you can associate a file extension (eg. .doc) with an application
>(eg. MS Word). I need to get this association information from within my
>app. I can't find it in Petzold or the Windows API. Can someone point me in
>the right direction? Thanks.
	You could use GetProfileString() to read them from the WIN.INI
	file.  The section is [extensions].

John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Technical Details
Message-ID: <1993Jan25.234511.27782@emr1.emr.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!emr1!jagrant
References: <51656@shamash.cdc.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!emr1!jagrant
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Getting file association info
Message-ID: <1993Jan25.234511.27782@emr1.emr.ca>
Keywords: windows associate application document
Organization: Energy, Mines, and Resources, Ottawa
References: <51656@shamash.cdc.com>
Distribution: usa
Date: Mon, 25 Jan 1993 23:45:11 GMT
Lines: 15