2022-02-02 17:19:49 +00:00
|
|
|
PR_UnloadLibrary
|
|
|
|
================
|
|
|
|
|
|
|
|
Unloads a library loaded with :ref:`PR_LoadLibrary`.
|
2022-02-02 17:07:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
Syntax
|
|
|
|
------
|
|
|
|
|
2023-01-04 14:39:06 +00:00
|
|
|
.. code::
|
2022-02-02 17:07:53 +00:00
|
|
|
|
|
|
|
#include <prlink.h>
|
|
|
|
|
|
|
|
PRStatus PR_UnloadLibrary(PRLibrary *lib);
|
|
|
|
|
|
|
|
|
|
|
|
Parameters
|
|
|
|
~~~~~~~~~~
|
|
|
|
|
|
|
|
The function has this parameter:
|
|
|
|
|
|
|
|
``lib``
|
2022-02-02 17:19:49 +00:00
|
|
|
A reference previously returned from :ref:`PR_LoadLibrary`.
|
2022-02-02 17:07:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
Returns
|
|
|
|
~~~~~~~
|
|
|
|
|
|
|
|
The function returns one of the following values:
|
|
|
|
|
|
|
|
- If successful, ``PR_SUCCESS``.
|
2022-02-02 17:19:49 +00:00
|
|
|
- If unsuccessful, ``PR_FAILURE``. Use :ref:`PR_GetError` to find the
|
2022-02-02 17:07:53 +00:00
|
|
|
reason for the failure.
|
|
|
|
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
2022-02-02 17:19:49 +00:00
|
|
|
This function undoes the effect of a :ref:`PR_LoadLibrary`. After calling
|
2022-02-02 17:07:53 +00:00
|
|
|
this function, future references to the library using its identity as
|
2022-02-02 17:19:49 +00:00
|
|
|
returned by :ref:`PR_LoadLibrary` will be invalid.
|