Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.os2.programmer.misc > #1311
| From | "Alex Taylor" <mail.me@reply.to.address> |
|---|---|
| Newsgroups | comp.os.os2.programmer.misc |
| Subject | Re: Creating a printer port, help needed |
| Date | 2011-02-04 05:28 -0600 |
| Organization | Newscene Usenet News Service, http://www.newscene.com/ |
| Message-ID | <mdq090pMZSKk-pn2-KvDfhdfOOgtb@localhost> (permalink) |
| References | <mdq090pMZSKk-pn2-9xyvKPFMBBTP@localhost> <mdq090pMZSKk-pn2-kk7dUqdjUydr@localhost> <4d4a28d5$0$6778$9b4e6d93@newsspool3.arcor-online.net> <mdq090pMZSKk-pn2-eeJdOs0t2icu@localhost> <4d4bc330$0$7670$9b4e6d93@newsspool1.arcor-online.net> |
On Fri, 4 Feb 2011 09:13:19 UTC, "Lars Erdmann" <lars.erdmann@arcor.de> wrote: > >> See other post. Use PrfReset to have the profile reread: > >> http://www.edm2.com/os2api/Prf/PrfReset.html > > > > Interesting. The warnings in EDM sound a bit dire, though. Does PM > > really call this when you create a new port through the UI? > > I don't understand your question. The way it works is this: > Your code mucks around with OS2.INI, OS2SYS.INI. > When you are done and you call PrfReset, this will trigger the > posting of a PL_ALTERED message (that's why you need a > message queue when you use PrfReset). > This message will go to all open applications, including the > graphical instance of PMSHELL.EXE. Well, my question was really "are you sure this the correct procedure to follow whenever you update OS2.INI?" It seems rather like overkill. What bothers me is (a) the function description implies that it's really not intended for this purpose, but is designed to CHANGE the current INI files to totally different ones, and (b) this warning from the EDM2 article you linked, which alarms me slightly: ... it has been my experience that the WorkPlace Shell crashes (this is with Warp without Windows and no fixpak, though.) sometimes when it recieves the PL_ALTERED message. I've also run out of stack space in this call (although this could be a symptom of the WPS, and not the code). So, to be safe, don't shirk on the stack space. If the WPS crashes, after the standard error message, it will reload without a need to reboot. Fourth, you can SEVERELY frighten the unsuspecting user when all his icons either change or vanish due to this API. Be careful in how you use it, or you might have people reboot/format/ reinstall from scratch if they don't know what's going on. Since I'm not generally used to the WPS crashing when I add a new printer port through the GUI, it makes me wonder if the GUI isn't using some different method to update the INI information. > At least, let's hope it works that way. As always with OS/2 trial and > error is your friend ... That's certainly true. :) -- Alex Taylor Fukushima, Japan http://www.socis.ca/~ataylo00 Please take off hat when replying.
Back to comp.os.os2.programmer.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-01 04:06 -0600
Re: Creating a printer port, help needed "Lars Erdmann" <lars.erdmann@arcor.de> - 2011-02-04 10:13 +0100
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-07 21:50 +0100
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-09 08:45 -0600
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-07 21:56 +0100
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-04 05:28 -0600
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-03 04:56 +0100
Re: Creating a printer port, help needed "Lars Erdmann" <lars.erdmann@arcor.de> - 2011-02-04 10:14 +0100
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-03 05:27 -0600
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-03 05:34 -0600
Re: Creating a printer port, help needed "Ruediger Ihle" <NOSPAM$R.Ihle@S-t.De> - 2011-02-03 16:43 +0000
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-11 01:00 -0600
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-08 00:44 +0100
Re: Creating a printer port, help needed "A.D. Fundum" <what.ever@neverm.ind> - 2011-02-13 18:52 +0100
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-09 00:55 +0100
Re: Creating a printer port, help needed "A.D. Fundum" <what.ever@neverm.ind> - 2011-02-02 18:55 +0100
Re: Creating a printer port, help needed "Alex Taylor" <mail.me@reply.to.address> - 2011-02-02 08:07 -0600
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-03 05:02 +0100
Re: Creating a printer port, help needed Lars Erdmann <lars.erdmann@arcor.de> - 2011-02-03 05:07 +0100
csiph-web