-public:
- /**
- Returns the string containing the usual extension for shared libraries for the
- given systems (including the leading dot if not empty).
- For example, this function will return @c ".dll" under Windows or (usually)
- @c ".so" under Unix.
- */
- static wxString GetDllExt();
-
- /**
- This function returns a valid handle for the main program itself. Notice that
- the @NULL return value is valid for some systems (i.e. doesn't mean that
- the function failed).
- @note This function is Unix specific. It will always fail under Windows
- or OS/2.
- */
- wxDllType GetProgramHandle();
-
- /**
- This function resolves a symbol in a loaded DLL, such as a variable or
- function name.
- Returned value will be @NULL if the symbol was not found in the DLL or if
- an error occurred.
-
- @param dllHandle
- Valid handle previously returned by
- LoadLibrary
- @param name
- Name of the symbol.
- */
- void* GetSymbol(wxDllType dllHandle, const wxString& name);
-
- /**
- This function loads a shared library into memory, with @a libname being the
- name of the library: it may be either the full name including path and
- (platform-dependent) extension, just the basename (no path and no extension)
- or a basename with extension. In the last two cases, the library will be
- searched in all standard locations.
- Returns a handle to the loaded DLL. Use @a success parameter to test if it
- is valid. If the handle is valid, the library must be unloaded later with
- UnloadLibrary().
-
- @param libname
- Name of the shared object to load.
- @param success
- May point to a bool variable which will be set to @true or
- @false; may also be @NULL.
- */
- wxDllType LoadLibrary(const wxString& libname,
- bool* success = NULL);
-
- /**
- This function unloads the shared library. The handle @a dllhandle must have
- been returned by LoadLibrary() previously.
- */
- void UnloadLibrary(wxDllType dllhandle);