diff options
author | George Hazan <george.hazan@gmail.com> | 2013-08-24 07:36:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-08-24 07:36:34 +0000 |
commit | ce236a1ca3574f230c150dff3a5bdd447e868ea5 (patch) | |
tree | fbc193a408459fa8484682cbfa63dd11d303ec61 /plugins/ShellExt/src/main.cpp | |
parent | 1009b191e21576836f4e759ce332a41ec0e077bf (diff) |
- correct COM expors
- various fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@5804 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ShellExt/src/main.cpp')
-rw-r--r-- | plugins/ShellExt/src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/ShellExt/src/main.cpp b/plugins/ShellExt/src/main.cpp index 1791fc99f8..2dea9412ed 100644 --- a/plugins/ShellExt/src/main.cpp +++ b/plugins/ShellExt/src/main.cpp @@ -48,15 +48,16 @@ private: HKEY m_key;
};
-char str1[] = "shlext " __VERSION_STRING " - shell context menu support for Miranda NG";
+char str1[100];
char str2[] = "{72013A26-A94C-11d6-8540-A5E62932711D}";
char str3[] = "miranda.shlext";
char str4[] = "Apartment";
TCHAR key1[] = _T("miranda.shlext\\{72013A26-A94C-11d6-8540-A5E62932711D}\\InprocServer32");
-HRESULT __stdcall DllRegisterServer()
+STDAPI DllRegisterServer()
{
+ sprintf_s(str1, sizeof(str1), "shlext %d.%d.%d.%d - shell context menu support for Miranda NG", __FILEVERSION_STRING);
if ( RegSetValueA(HKEY_CLASSES_ROOT, "miranda.shlext", REG_SZ, str1, sizeof(str1)))
return E_FAIL;
if ( RegSetValueA(HKEY_CLASSES_ROOT, "miranda.shlext\\CLSID", REG_SZ, str2, sizeof(str2)))
@@ -91,7 +92,7 @@ HRESULT __stdcall DllRegisterServer() return S_OK;
}
-HRESULT __stdcall DllUnregisterServer()
+STDAPI DllUnregisterServer()
{
return RemoveCOMRegistryEntries();
}
|