]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/private.h
Old API deprecated. Source cleaning.
[wxWidgets.git] / include / wx / msw / private.h
index a7b41605a0dfbc2e14063c80f7989501e93e7523..cdb8b5e95384548ff6f8006472dbfbf6ac47bf83 100644 (file)
@@ -519,13 +519,13 @@ extern "C"
 
 WXDLLIMPEXP_BASE void wxSetInstance(HINSTANCE hInst);
 
-// return the full name of the program file
-inline wxString wxGetFullModuleName()
+// return the full path of the given module
+inline wxString wxGetFullModuleName(HMODULE hmod)
 {
     wxString fullname;
     if ( !::GetModuleFileName
             (
-                (HMODULE)wxGetInstance(),
+                hmod,
                 wxStringBuffer(fullname, MAX_PATH),
                 MAX_PATH
             ) )
@@ -536,6 +536,12 @@ inline wxString wxGetFullModuleName()
     return fullname;
 }
 
+// return the full path of the program file
+inline wxString wxGetFullModuleName()
+{
+    return wxGetFullModuleName((HMODULE)wxGetInstance());
+}
+
 #if wxUSE_GUI
 
 // cursor stuff