🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #542

File Associations

#542
From: Ed Hovorka
Date: Tue, 28 Jul 1992 17:26
29 lines
1357 bytes
Is this thing on??(Check 1-2-3, Check :)   )
I'm reposting something I've posted before because I still don't have
an answer.  


What I'm trying to figure out is how file associations are stored 
internally in OS/2 2.0.  In version 1.3's OS2.INI, I was able to do a 
WinQueryProfileString on PM_ASSOC_FILTER with a key of "*.TXT".  This 
retrieved the name of the program to execute when an icon for a file with 
the .TXT extension is double clicked.  The OS2.INI file is set up quite
differently in 2.0.

I can set up the association OK in WPS, so that when I double click on the
text file's icon(under the drives folder) I get the correct executable to
run.

How can I find, from within my C code, the name of a program that is 
associated with a specific file extension in 2.0? 

According to any INI viewers I've tried, the file extension seems to be
associated with a number.

Any help would be greatly appreciated.

-- 
Ed Hovorka
Drone
Datalogics, Inc.
A growing exited company
Technical Details
Message-ID: <1992Jul28.172626.18879@dlogics.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!jvnc.net!rutgers!psinntp!psinntp!dlogics!emh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!jvnc.net!rutgers!psinntp!psinntp!dlogics!emh
From: emh@dlogics.com (Ed Hovorka)
Newsgroups: comp.os.os2.programmer
Subject: File Associations
Keywords: INI PM_ASSOC_FILTER
Message-ID: <1992Jul28.172626.18879@dlogics.com>
Date: 28 Jul 92 17:26:26 GMT
Organization: Datalogics, Inc.
Lines: 29