implemented GetProgramHandle() for Win32 and documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dc7ccb9c5d
commit
6d94009faa
@ -103,6 +103,14 @@ contains no such symbol.
|
||||
\helpref{wxDYNLIB\_FUNCTION}{wxdynlibfunction}
|
||||
|
||||
|
||||
\membersection{wxDynamicLibrary::GetProgramHandle}\label{wxdynamiclibrarygetprogramhandle}
|
||||
|
||||
\func{static wxDllType}{GetProgramHandle}{\void}
|
||||
|
||||
Return a valid handle for the main program itself or \texttt{NULL} if symbols
|
||||
from the main program can't be loaded on this platform.
|
||||
|
||||
|
||||
\membersection{wxDynamicLibrary::HasSymbol}\label{wxdynamiclibraryhassymbol}
|
||||
|
||||
\constfunc{bool}{HasSymbol}{\param{const wxString\& }{name}}
|
||||
|
@ -64,8 +64,8 @@ WX_DEFINE_USER_EXPORTED_OBJARRAY(wxDynamicLibraryDetailsArray);
|
||||
const wxChar *wxDynamicLibrary::ms_dllext = wxEmptyString;
|
||||
#endif
|
||||
|
||||
// for Unix it is in src/unix/dlunix.cpp
|
||||
#if !defined(__UNIX__) || defined(__EMX__)
|
||||
// for MSW/Unix it is defined in platform-specific file
|
||||
#if !(defined(__WXMSW__) && (!defined(__UNIX__) || defined(__EMX__)))
|
||||
|
||||
wxDllType wxDynamicLibrary::GetProgramHandle()
|
||||
{
|
||||
@ -73,7 +73,8 @@ wxDllType wxDynamicLibrary::GetProgramHandle()
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif // __UNIX__
|
||||
#endif // __WXMSW__ || __UNIX__
|
||||
|
||||
|
||||
bool wxDynamicLibrary::Load(const wxString& libnameOrig, int flags)
|
||||
{
|
||||
|
@ -244,6 +244,15 @@ wxDynamicLibraryDetailsCreator::EnumModulesProc(PSTR name,
|
||||
// wxDynamicLibrary implementation
|
||||
// ============================================================================
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// misc functions
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxDllType wxDynamicLibrary::GetProgramHandle()
|
||||
{
|
||||
return (wxDllType)::GetModuleHandle(NULL);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// loading/unloading DLLs
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user