summaryrefslogtreecommitdiff
path: root/utilities.c
diff options
context:
space:
mode:
Diffstat (limited to 'utilities.c')
-rw-r--r--[-rwxr-xr-x]utilities.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/utilities.c b/utilities.c
index 444a6d2..170dcca 100755..100644
--- a/utilities.c
+++ b/utilities.c
@@ -17,22 +17,6 @@
#include "commonheaders.h"
-/*HANDLE CreateThreadEx(pThreadFuncEx AFunc, void* arg, DWORD* pThreadID)
-{
- FORK_THREADEX_PARAMS params;
- DWORD dwThreadId;
- HANDLE hThread;
-
- params.pFunc = AFunc;
- params.arg = arg;
- params.iStackSize = 0;
- params.threadID = &dwThreadId;
- hThread = (HANDLE)CallService(MS_SYSTEM_FORK_THREAD_EX, 0, (LPARAM)&params);
- if (pThreadID)
- *pThreadID = dwThreadId;
-
- return hThread;
-}*/
TCHAR* __stdcall UniGetContactSettingUtf(HANDLE hContact, const char *szModule,const char* szSetting, TCHAR* szDef)
{
@@ -46,20 +30,6 @@ TCHAR* __stdcall UniGetContactSettingUtf(HANDLE hContact, const char *szModule,c
return szRes;
}
-// case-insensitive _tcsstr
-/*#define NEWTSTR_ALLOCA(A) (A==NULL)?NULL:_tcscpy((TCHAR*)alloca(sizeof(TCHAR)*(_tcslen(A)+1)),A)
-const TCHAR *stristr( const TCHAR *str, const TCHAR *substr)
-{
- TCHAR *p;
- TCHAR *str_up = NEWTSTR_ALLOCA(str);
- TCHAR *substr_up = NEWTSTR_ALLOCA(substr);
-
- CharUpperBuff(str_up, lstrlen(str_up));
- CharUpperBuff(substr_up, lstrlen(substr_up));
-
- p = _tcsstr(str_up, substr_up);
- return p ? (str + (p - str_up)) : NULL;
-}*/
char *date()
{
@@ -107,20 +77,3 @@ char *date()
d[9]=tmp[5];
return d;
}
-HANDLE NetLib_CreateConnection(HANDLE hUser, NETLIBOPENCONNECTION* nloc) //from icq )
-{
- HANDLE hConnection;
-
- nloc->cbSize = sizeof(NETLIBOPENCONNECTION);
- nloc->flags |= NLOCF_V2;
-
- hConnection = (HANDLE)CallService(MS_NETLIB_OPENCONNECTION, (WPARAM)hUser, (LPARAM)nloc);
- if (!hConnection && (GetLastError() == 87))
- { // this ensures, an old Miranda will be able to connect also
- nloc->cbSize = NETLIBOPENCONNECTION_V1_SIZE;
- hConnection = (HANDLE)CallService(MS_NETLIB_OPENCONNECTION, (WPARAM)hConnection, (LPARAM)nloc);
- }
- return hConnection;
-}
-
-