summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins/StartupStatus
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-09-26 18:36:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-09-26 18:36:45 +0000
commitf34c2e508eeaba527009e2b86bf6ef7a09a496bb (patch)
tree4b89867b872732b1899609f5dea358092ca4891d /plugins/StatusPlugins/StartupStatus
parent895ee7a4623bfa3378c5c5f1dec69893ca87b6b6 (diff)
plugins cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6243 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins/StartupStatus')
-rw-r--r--plugins/StatusPlugins/StartupStatus/options.cpp26
1 files changed, 1 insertions, 25 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/options.cpp b/plugins/StatusPlugins/StartupStatus/options.cpp
index c2ecff2710..63394872ca 100644
--- a/plugins/StatusPlugins/StartupStatus/options.cpp
+++ b/plugins/StatusPlugins/StartupStatus/options.cpp
@@ -29,7 +29,6 @@ INT_PTR CALLBACK CmdlOptionsDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM l
INT_PTR CALLBACK OptDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM lParam);
INT_PTR CALLBACK addProfileDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM lParam);
-BOOL MyGetSpecialFolderPath(HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate);
static int CountSettings(const char *szSetting,LPARAM lParam);
static int DeleteSetting(const char *szSetting,LPARAM lParam);
static int ClearDatabase(char* filter);
@@ -173,7 +172,7 @@ HRESULT CreateLink(TSettingsList& protoSettings)
char *args = GetCMDLArguments(protoSettings);
char *desc = GetLinkDescription(protoSettings);
- if (MyGetSpecialFolderPath(NULL, savePath, 0x10, FALSE))
+ if (SHGetSpecialFolderPath(NULL, savePath, 0x10, FALSE))
_tcscat(savePath, _T(SHORTCUT_FILENAME));
else
mir_sntprintf(savePath, SIZEOF(savePath), _T(".\\%s"), _T(SHORTCUT_FILENAME));
@@ -925,29 +924,6 @@ int OptionsInit(WPARAM wparam,LPARAM lparam)
return 0;
}
-// from: http://www.codeproject.com/winhelp/msdnintegrator/
-
- static const CHAR _szSpecialFolderPath[] = "SHGetSpecialFolderPathW";
-
-BOOL MyGetSpecialFolderPath(HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate)
-{
- typedef int (WINAPI* _SHGET)(HWND, LPTSTR, int, BOOL);
-
- // Get a function pointer to SHGetSpecialFolderPath(...) from
- // Shell32.dll, if this returns NULL then check ShFolder.dll...
- _SHGET pfn = (_SHGET)GetProcAddress( LoadLibraryA( "Shell32.dll" ), _szSpecialFolderPath);
- if (pfn == NULL) {
- // Try to get the function pointer from ShFolder.dll, if pfn is still
- // NULL then we have bigger problems...
- pfn = (_SHGET)GetProcAddress( LoadLibraryA("ShFolder.dll"), _szSpecialFolderPath);
- if (pfn == NULL)
- return FALSE;
- }
-
- return pfn(hwndOwner, lpszPath, nFolder, fCreate);
-}
-
-// end: from: http://www.codeproject.com/winhelp/msdnintegrator/
static int ClearDatabase(char* filter)
{
DBCONTACTENUMSETTINGS dbces;