blob: 67b34e3f9568554e2cfab79d47e88b3249caf1f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#include "skype_proto.h"
int CSkypeProto::SendBroadcast(int type, int result, HANDLE hProcess, LPARAM lParam)
{
return this->SendBroadcast(NULL, type, result, hProcess, lParam);
}
LIST<CSkypeProto> CSkypeProto::instanceList(1, CSkypeProto::CompareProtos);
CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* userName)
{
if (CSkypeProto::instanceList.getCount() > 0) {
MessageBox(NULL, TranslateT("SkypeKit will only permit you to login to one account at a time. Adding multiple instances of SkypeKit is prohibited in the licence agreement and standard distribution terms."), _T(MODULE), MB_OK | MB_ICONWARNING);
return NULL;
}
CSkypeProto *ppro = new CSkypeProto(protoName, userName);
CSkypeProto::instanceList.insert(ppro);
return ppro;
}
int CSkypeProto::UninitSkypeProto(CSkypeProto* ppro)
{
CSkypeProto::instanceList.remove(ppro);
delete ppro;
return 0;
}
|