In the technical paper "Mastering Shared Libraries", it is stated that
shared libraries should allow for multiple calls to Open (and a
corresponding number of calls to Close). However, I have a shared library
that is using the dynamic loading aspects rather than the sharing aspects --
in fact, I would like to prevent two different applications using the
library at the same time.
So, what I'm asking is two-fold:
1) Is it required that a shared library allow for multiple nested Open
calls? (If not, then my question is answered -- second and subsequent Open
requests fail)
2) If I do have to allow a single application to make multiple Open calls,
is there some way of identifying which application is making the call? I
tried SysTaskID, but it doesn't appear to be what I would expect (and yeah,
it's listed in the System Use Only section of the manual....)
--Bill Turner
PSC Inc.