This project is read-only.

Issue regarding apiMessagesHandler

Apr 26, 2014 at 7:54 PM
Edited Apr 26, 2014 at 8:14 PM
i download your apps and test. it works absolutely fine. i was trying to develop same kind of win apps which will record & save skype conversation. i copied your code and got no compilation error but mine is not recording anything. i found this function apiMessagesHandler() is not invoking properly always in my win apps.

when i am making call through skype then control never come inside in this IF logic of function apiMessagesHandler()
if (message == WinApiConstants.WM_COPYDATA && wParam == _skypeWindowHandle)
            {
                // Get the passed data.
                var data = (CopyDataStruct) Marshal.PtrToStructure(lParam, typeof(CopyDataStruct));

                processSkypeMessage(data.Data);

                handled = true;
                return new IntPtr(1);
            }
so can you guide me what i am missing. thanks
Apr 27, 2014 at 1:20 PM
Hi

I've developed application using native Win API calls. I wanted to experiment and learn more about communication between Skype and custom application.

In your case I would suggest to use official SDK. Unfortunately, Microsoft is doing significant changes (please, read https://aragonresearch.com/microsoft-kills-skype-desktop-apis-leaves-developers-scrambling/). Thus, both approaches, Windows API and SDK, can't be used for sure.

As for code snippet above: maybe your application wasn't accepted by Skype yet... It's difficult to say without analyzing your code.

Regards,
Kirill
Apr 29, 2014 at 8:06 AM
hi kirmir,

thanks for your reply. should i include my source code file url.......it is already uploaded in onedrive. here is the url
https://onedrive.live.com/#cid=C4A6F16F34D7540A&id=C4A6F16F34D7540A!126

from the above url just download the SkypeCallTest.zip file and run it then you will see my WndProc is not receiving message from skype repeatedly when i am making call through skype. thanks