11.4 PSYX Manager
long LoadPSYX(char *name, long ID);
Loads the PSYX named byname
; ifname
isNULL
,ID
is used instead. The return value is the loaded PSYX's ID if the PSYX was loaded, or 0 if the load failed.
PSYXerror
is set tope_unknown
if the PSYX name or ID is bad. If the PSYX does not accept thepInitialize
message,PSYXerror
is set tope_init_fail
.To insure that the PSYX is not purged during some other memory operation, call
SecurePSYX()
. CallReleasePSYX()
when you no longer need the PSYX.
int PurgePSYX(long ID);
Purges the PSYX with IDID
if it is not secured.TRUE
is returned if the PSYX was succesfully purged.
PSYXerror
is set tope_unknown
if the PSYX ID is bad. If the PSYX was not loaded,PSYXerror
is set tope_not_loaded
. If the PSYX does not accept thepDenitialize
message,PSYXerror
is set tope_deinit_fail
.
void PurgePSYXs(void);
CallsPurgePSYX()
on all loaded PSYXs that are not secured.
PSYXerror
is set tope_unknown
if the PSYX ID is bad. If any PSYX does not accept thepDenitialize
message,PSYXerror
is set tope_deinit_fail
.
int SecurePSYX(long ID);
Locks the PSYX into memory so that it may not be purged. Every call toSecurePSYX()
should be balanced by a call toReleasePSYX()
. If the PSYX has been purged, it will be reloaded.TRUE
is returned if the PSYX is secured.
PSYXerror
is set tope_unknown
if the PSYX ID is bad. If the PSYX does not accept thepInitialize
message,PSYXerror
is set tope_init_fail
.
int ReleasePSYX(long ID);
Unlocks the PSYX so that it may again be unloaded. Every call toReleasePSYX()
should be preceded by a call toSecurePSYX()
.TRUE
is returned if the PSYX is released.Don't worry that you may release a PSYX some other process is using;
SecurePSYX()
andReleasePSYX()
take care of this problem by keeping track of how many secure and releases have been called.
PSYXerror
is set tope_unknown
if the PSYX ID is bad. If the PSYX was not loaded,PSYXerror
is set tope_not_loaded
. If the PSYX was not secured,PSYXerror
is set tope_not_secured
.
int IsPSYXUnpurged(long ID);
Returns TRUE if the specified PSYX is loaded, or FALSE if it is unloaded.
PSYXerror
is set tope_unknown
if the PSYX ID is bad. If the PSYX was not loaded,PSYXerror
is set tope_not_loaded
.
int IsPSYXSecured(long ID);
Returns TRUE if the PSYX is loaded and secured, or FALSE if it is unloaded or not secured.
PSYXerror
is set tope_unknown
if the PSYX ID is bad. If the PSYX was not loaded,PSYXerror
is set tope_not_loaded
.
Generated with CERN WebMaker