home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / os2 / programm / 3853 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  1.3 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!jvnc.net!rutgers!psinntp!psinntp!dlogics!emh
  2. From: emh@dlogics.com (Ed Hovorka)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: File Associations
  5. Keywords: INI PM_ASSOC_FILTER
  6. Message-ID: <1992Jul28.172626.18879@dlogics.com>
  7. Date: 28 Jul 92 17:26:26 GMT
  8. Organization: Datalogics, Inc.
  9. Lines: 29
  10.  
  11. Is this thing on??(Check 1-2-3, Check :)   )
  12. I'm reposting something I've posted before because I still don't have
  13. an answer.  
  14.  
  15.  
  16. What I'm trying to figure out is how file associations are stored 
  17. internally in OS/2 2.0.  In version 1.3's OS2.INI, I was able to do a 
  18. WinQueryProfileString on PM_ASSOC_FILTER with a key of "*.TXT".  This 
  19. retrieved the name of the program to execute when an icon for a file with 
  20. the .TXT extension is double clicked.  The OS2.INI file is set up quite
  21. differently in 2.0.
  22.  
  23. I can set up the association OK in WPS, so that when I double click on the
  24. text file's icon(under the drives folder) I get the correct executable to
  25. run.
  26.  
  27. How can I find, from within my C code, the name of a program that is 
  28. associated with a specific file extension in 2.0? 
  29.  
  30. According to any INI viewers I've tried, the file extension seems to be
  31. associated with a number.
  32.  
  33. Any help would be greatly appreciated.
  34.  
  35. -- 
  36. Ed Hovorka
  37. Drone
  38. Datalogics, Inc.
  39. A growing exited company
  40.