🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Ed Hovorka Tue, 28 Jul 1992 17:26
File Associations
#542
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads