diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-11 22:23:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-11 22:24:06 +0300 |
commit | d958e3fb847813075cc059bd5a7aa28252982268 (patch) | |
tree | d9c02a7ddee830628248219e9c83c7de3c335140 /plugins/SendScreenshotPlus | |
parent | c8e1c429321ed8aa2efce0fc00b6dfd08f1b2735 (diff) |
strong typization - better typization
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r-- | plugins/SendScreenshotPlus/src/Main.cpp | 14 | ||||
-rw-r--r-- | plugins/SendScreenshotPlus/src/stdafx.h | 7 |
2 files changed, 10 insertions, 11 deletions
diff --git a/plugins/SendScreenshotPlus/src/Main.cpp b/plugins/SendScreenshotPlus/src/Main.cpp index 4c289bde45..9ad0d286f5 100644 --- a/plugins/SendScreenshotPlus/src/Main.cpp +++ b/plugins/SendScreenshotPlus/src/Main.cpp @@ -32,11 +32,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // Prototypes /////////////////////////////////////////////////////////////////////////// CHAT_MANAGER *pci; CLIST_INTERFACE *pcli; -HINSTANCE g_hSendSS; -MGLOBAL g_myGlobals; -HANDLE g_hNetlibUser=0;//!< Netlib Register User -FI_INTERFACE* FIP=NULL; -int hLangpack;//Miranda NG langpack used by translate functions, filled by mir_getLP() +HINSTANCE g_hSendSS; +MGLOBAL g_myGlobals; +HNETLIBUSER g_hNetlibUser=0;//!< Netlib Register User +FI_INTERFACE *FIP=NULL; +int hLangpack;//Miranda NG langpack used by translate functions, filled by mir_getLP() IconItem ICONS[ICO_END_] = { @@ -232,11 +232,11 @@ int hook_ModulesLoaded(WPARAM, LPARAM) g_myGlobals.PluginFTPExist = ServiceExists(MS_FTPFILE_UPLOAD); g_myGlobals.PluginDropboxExist = ServiceExists(MS_DROPBOX_UPLOAD); // Netlib register - NETLIBUSER nlu = { sizeof(nlu) }; + NETLIBUSER nlu = {}; nlu.szSettingsModule = __PLUGIN_NAME; nlu.ptszDescriptiveName = TranslateT("SendSS HTTP connections"); nlu.flags = NUF_OUTGOING | NUF_HTTPCONNS | NUF_UNICODE; //|NUF_NOHTTPSOPTION; - g_hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu); + g_hNetlibUser = Netlib_RegisterUser(&nlu); // load my button class / or use UInfoEx CtrlButtonLoadModule(); // Folders plugin support diff --git a/plugins/SendScreenshotPlus/src/stdafx.h b/plugins/SendScreenshotPlus/src/stdafx.h index 5cdeed4d41..a9f907c99d 100644 --- a/plugins/SendScreenshotPlus/src/stdafx.h +++ b/plugins/SendScreenshotPlus/src/stdafx.h @@ -117,10 +117,9 @@ typedef struct _MGLOBAL { #define SZ_SENDSS "SendSS" extern ATOM g_clsTargetHighlighter; -extern HINSTANCE g_hSendSS; -extern MGLOBAL g_myGlobals; -extern HANDLE g_hNetlibUser; - +extern HINSTANCE g_hSendSS; +extern MGLOBAL g_myGlobals; +extern HNETLIBUSER g_hNetlibUser; enum{ ICO_MAIN=0, |