summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2012-09-30 15:10:33 +0000
committerAlexander Lantsev <aunsane@gmail.com>2012-09-30 15:10:33 +0000
commit75fe175886ceca31d4cade1c067de7b0e1e30d87 (patch)
treea12a99e1fe56fe7ee321af925bc102b92382ba1d /protocols/Skype/src/skype.cpp
parent5af310dabaed35bdb1d58a6f2eb393d1cece51ef (diff)
- conatcts funcs moved into skype_contacts.cpp
- added settings functions Set* - first approach to load contact list - start skype runtime on startup git-svn-id: http://svn.miranda-ng.org/main/trunk@1731 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype.cpp')
-rw-r--r--protocols/Skype/src/skype.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype.cpp b/protocols/Skype/src/skype.cpp
index 418d4040ed..e7060c289a 100644
--- a/protocols/Skype/src/skype.cpp
+++ b/protocols/Skype/src/skype.cpp
@@ -91,6 +91,32 @@ int LoadKeyPair()
extern "C" int __declspec(dllexport) Load(void)
{
+ // loading skype SDK
+ // shitcode
+ char* bsp;
+ STARTUPINFOA cif;
+ PROCESS_INFORMATION pi;
+ char runtimePath[MAX_PATH];
+
+ GetModuleFileNameA(g_hInstance, runtimePath, MAX_PATH);
+ bsp = strrchr(runtimePath, '\\' );
+ runtimePath[strlen(runtimePath) - strlen(bsp)] = '\0';
+ strcat(runtimePath, "\\..\\..\\..\\..\\SkypeKit\\SDK\\bin\\windows-x86\\windows-x86-skypekit.exe");
+
+ ZeroMemory(&cif,sizeof(STARTUPINFOA));
+
+ CreateProcessA(
+ runtimePath,
+ NULL,
+ NULL,
+ NULL,
+ TRUE,
+ CREATE_NEW_CONSOLE,
+ NULL,
+ NULL,
+ &cif,
+ &pi);
+
g_skype = new CSkype();
LoadKeyPair();
g_skype->init(keyBuf, "127.0.0.1", 8963, "streamlog.txt");