From 8a6cd84bd31d9f5bbcc5f2256e156ed37326cf9b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 29 May 2013 14:04:14 +0000 Subject: no more WIN64, only _WIN64 git-svn-id: http://svn.miranda-ng.org/main/trunk@4832 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/LotusNotify/src/LotusNotify.cpp | 160 ++++++++++++++++---------------- 1 file changed, 79 insertions(+), 81 deletions(-) (limited to 'plugins/LotusNotify/src') diff --git a/plugins/LotusNotify/src/LotusNotify.cpp b/plugins/LotusNotify/src/LotusNotify.cpp index 2cc5c66e64..dbfea1a442 100644 --- a/plugins/LotusNotify/src/LotusNotify.cpp +++ b/plugins/LotusNotify/src/LotusNotify.cpp @@ -98,7 +98,7 @@ PLUGININFOEX pluginInfo = { // authentication callback futnction from extension manager called by nnotes.dll -STATUS LNPUBLIC __stdcall EMCallBack (EMRECORD * pData) +STATUS LNPUBLIC __stdcall EMCallBack (EMRECORD * pData) { VARARG_PTR pArgs; DWORD maxPwdLen; @@ -123,7 +123,7 @@ STATUS LNPUBLIC __stdcall EMCallBack (EMRECORD * pData) } -//Main entry point for Ext Manager of Lotus API. called by nnotes.dll +//Main entry point for Ext Manager of Lotus API. called by nnotes.dll //It don't work (don't know why), and Mirandas Load function is called with value 1 or 0 as parameter... __declspec(dllexport)STATUS LNPUBLIC MainEntryPoint (void) { @@ -132,14 +132,14 @@ __declspec(dllexport)STATUS LNPUBLIC MainEntryPoint (void) if(rc) { //Extension magager don't know who we are :( startuperror+=8; - // Get the info from the .ini file + // Get the info from the .ini file } return rc; } //Clear Extension Manager when exiting -void ExtClear() +void ExtClear() { STATUS status; if (0 != hLotusRegister) { @@ -211,7 +211,7 @@ void deleteElements() { struct HISTORIA *cur = first, *del; while(cur != NULL) - { + { del = cur; cur = cur->next; deletePopupsHandles(&(del->pq),FALSE); @@ -298,7 +298,7 @@ BOOL checkFilters(TCHAR* str, int field) _tcsncpy_s(buff, SIZEOF(buff), settingFilterTo, SIZEOF(buff)); break; } - + while(strptr = _tcschr(buff, ';')) { @@ -317,7 +317,7 @@ BOOL checkFilters(TCHAR* str, int field) } -//subfunction called from popup plugin callback function +//subfunction called from popup plugin callback function void Click(HWND hWnd,BOOL execute) { POPUPATT *pid=NULL; @@ -353,7 +353,7 @@ static LRESULT CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPA if (HIWORD(wParam) == STN_CLICKED)//client clicked on popup with left mouse button { Click(hWnd,TRUE); - + //system(settingCommand); //if(!settingOnceOnly) //addNewId(noteID); @@ -367,7 +367,7 @@ static LRESULT CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPA { Click(hWnd,FALSE); break; - } + } case UM_INITPOPUP: { @@ -378,14 +378,14 @@ static LRESULT CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPA break; } - case UM_FREEPLUGINDATA: + case UM_FREEPLUGINDATA: { POPUPATT * mpd = NULL; mpd = (POPUPATT*)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hWnd,(LPARAM)mpd); if (mpd > 0) free(mpd); return TRUE; //TRUE or FALSE is the same, it gets ignored. } - + default: break; } @@ -427,7 +427,7 @@ BOOL checkNotesIniFile(BOOL bInfo) } } } - + if(settingIniAnswer == 1) { if(strlen(tmp) > 0) { @@ -440,7 +440,7 @@ BOOL checkNotesIniFile(BOOL bInfo) (OSSetEnvironmentVariable1) ("EXTMGR_ADDINS", tmp); //set notes.ini entry if(bInfo) { MessageBox(NULL, TranslateT("notes.ini modified correctly. Miranda restart required."), TranslateT("LotusNotify plugin configuration"), MB_OK); - } else{ + } else{ ErMsgT(TranslateT("notes.ini modified correctly. Miranda restart required.")); } return TRUE; @@ -480,7 +480,7 @@ void showMsg(TCHAR* sender,TCHAR* text, DWORD id, char *strUID) _tcscpy_s(ppd.lptzText, SIZEOF(ppd.lptzText), text); if(settingSetColours) { - ppd.colorBack = settingBgColor; + ppd.colorBack = settingBgColor; ppd.colorText = settingFgColor; } ppd.PluginWindowProc = PopupDlgProc; @@ -521,7 +521,7 @@ void ErMsgT(TCHAR* msg) } -//Lotus error occured so translate it +//Lotus error occured so translate it void ErMsgByLotusCode(STATUS erno) { char far error_text_LMBCS[200]; @@ -537,7 +537,7 @@ void ErMsgByLotusCode(STATUS erno) } -//set menu avainability +//set menu avainability static void LNEnableMenuItem(HANDLE hMenuItem, BOOL bEnable) { log_p(L"LNEnableMenuItem: bEnable=%d", bEnable); @@ -554,7 +554,7 @@ static void LNEnableMenuItem(HANDLE hMenuItem, BOOL bEnable) int check() { log_p(L"check: Entering check function. running=%d", running); - + if(startuperror) { int cnt; for(cnt = 0; cnt <= 4; cnt++) @@ -562,7 +562,7 @@ int check() { ErMsgT(TranslateTS(startuperrors[cnt])); return 1; } - + if (Plugin_Terminated || Miranda_Terminated()){ log_p(L"check: Plugin_Terminated (=%d) OR Miranda_Terminated()", Plugin_Terminated); return 0; @@ -622,7 +622,7 @@ void checkthread(void*) goto errorblock; } log_p(L"checkthread: OSPathNetConstruct: %S", fullpath); - + if (error = (NSFDbOpen1) (fullpath, &db_handle)) { if(strcmp(settingServerSec, "") != 0) { if (error = (OSPathNetConstruct1)(NULL, settingServerSec, settingDatabase, fullpath)) { @@ -658,15 +658,15 @@ void checkthread(void*) } log(L"checkthread: Unread Table updated"); assert(hTable); - + while((IDScan1)(hTable, fFirst, ¬eID)) { - + WORD Att; BLOCKID bhAttachment; DWORD cSize = 0; DWORD attSize = 0; - OID retNoteOID; + OID retNoteOID; TIMEDATE retModified; /* modified timedate */ WORD retNoteClass; /* note class */ TIMEDATE sendDate; @@ -676,7 +676,7 @@ void checkthread(void*) log_p(L"checkthread: Plugin_Terminated (=%d) OR Miranda_Terminated()", Plugin_Terminated); break; } - + log_p(L"checkthread: Getting info about: %d", noteID); fFirst = FALSE; @@ -697,19 +697,19 @@ void checkthread(void*) //show again, but only not clicked (id added to list on Left Button click) continue; } - + log(L"checkthread: skiped-show again, but only not clicked (id added to list on Left Button click)"); if(settingNewest && settingNewestID >= noteID){ //only newest option enabled, so if old id don't show it continue; } - + log(L"checkthread: skiped-only newest option enabled, so if old id don't show it"); //if(((!settingOnceOnly||(settingOnceOnly&&settingNonClickedOnly))&&existElem(noteID))||(settingNewest&&settingNewestID>=noteID)) //continue; - + if (error = (NSFNoteOpen1) (db_handle, noteID, 0, ¬e_handle)) { continue; } @@ -792,7 +792,7 @@ void checkthread(void*) ); #endif - + if(attSize){ WCHAR field_attachments_UNICODE[MAX_FIELD]; swprintf_s(field_attachments_UNICODE, SIZEOF(field_attachments_UNICODE), TranslateW(L"Attachments: %d bytes"), attSize); @@ -910,7 +910,7 @@ void fillServersList(HWND hwndDlg) BYTE far *pServerList; /* Pointer to start of Server List */ WORD wServerCount; /* Number of servers in list. */ WORD far *pwServerLength; /* Index to array of servername lens */ - BYTE far *pServerName; + BYTE far *pServerName; STATUS error = NOERROR; /* Error return from API routines. */ char ServerString[MAXPATH]; /* String to hold server names. */ LPSTR szServerString = ServerString; @@ -922,7 +922,7 @@ void fillServersList(HWND hwndDlg) error = (NSGetServerList1)(NULL, &hServerList); if (error == NOERROR) { - + pServerList = (BYTE far *)(OSLockObject1)(hServerList); wServerCount = (WORD) *pServerList; @@ -933,7 +933,7 @@ void fillServersList(HWND hwndDlg) for (i=0; i