11.4 PSYX Manager
long LoadPSYX(char *name, long ID);
Loads the PSYX named byname; ifnameisNULL,IDis used instead. The return value is the loaded PSYX's ID if the PSYX was loaded, or 0 if the load failed.
PSYXerroris set tope_unknownif the PSYX name or ID is bad. If the PSYX does not accept thepInitializemessage,PSYXerroris 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 IDIDif it is not secured.TRUEis returned if the PSYX was succesfully purged.
PSYXerroris set tope_unknownif the PSYX ID is bad. If the PSYX was not loaded,PSYXerroris set tope_not_loaded. If the PSYX does not accept thepDenitializemessage,PSYXerroris set tope_deinit_fail.
void PurgePSYXs(void);
CallsPurgePSYX()on all loaded PSYXs that are not secured.
PSYXerroris set tope_unknownif the PSYX ID is bad. If any PSYX does not accept thepDenitializemessage,PSYXerroris 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.TRUEis returned if the PSYX is secured.
PSYXerroris set tope_unknownif the PSYX ID is bad. If the PSYX does not accept thepInitializemessage,PSYXerroris 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().TRUEis 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.
PSYXerroris set tope_unknownif the PSYX ID is bad. If the PSYX was not loaded,PSYXerroris set tope_not_loaded. If the PSYX was not secured,PSYXerroris set tope_not_secured.
int IsPSYXUnpurged(long ID);
Returns TRUE if the specified PSYX is loaded, or FALSE if it is unloaded.
PSYXerroris set tope_unknownif the PSYX ID is bad. If the PSYX was not loaded,PSYXerroris 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.
PSYXerroris set tope_unknownif the PSYX ID is bad. If the PSYX was not loaded,PSYXerroris set tope_not_loaded.
Generated with CERN WebMaker