|
Hi Tom, Thanks! I'll give it a try when I have a moment or three. I think I read about this awhile back when wondering how those QZDASOINIT jobs did it. Hmm. Are you saying that even though I release the profile handles, they are not reused? Peter Dow Dow Software Services, Inc. 909 425-0194 voice 909 425-0196 fax ----- Original Message ----- From: <thomas@inorbit.com> To: <MIDRANGE-L@midrange.com> Sent: Thursday, July 19, 2001 7:00 PM Subject: Re: QNTC userid/password change? > Peter: > > On Wed, 18 July 2001, "Peter Dow" wrote: > > > No, I didn't; thanks for the suggestion. What's the api? > > The basic process uses Security APIs approximately as follows: > > 1. Call QSYGETPH to get a profile handle for current user. > 2. Call QSYGETPH to get profile handle for swap-to user. > 3. Call QWTSETP to set to run under the swap-to user. > 4. Do whatever processing is needed. > 5. Call QWTSETP to set to run under previous current user. > 6. Call QSYRLSPH to release profile handle for current user. > 7. Call QSYRLSPH to release profile handle for swap-to user. > > Sequence can vary slightly and there are things to watch for, but the manuals cover most stuff. It is apparently possible to deplete the supply of profile handles after many tens of thousands of swaps (have to check for absolute details) but the risk is minimal and the supply is refreshed at IPL. Very rare to hear about it. > > Tom Liotta > > > -- > Tom Liotta > The PowerTech Group, Inc. > 19426 68th Avenue South > Kent, WA 98032 > Phone 253-872-7788 > Fax 253-872-7904 > http://www.400Security.com > > > ___________________________________________________ > The ALL NEW CS2000 from CompuServe > Better! Faster! More Powerful! > 250 FREE hours! Sign-on Now! > http://www.compuserve.com/trycsrv/cs2000/webmail/ > > > > > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.