Issue regarding apiMessagesHandler

Apr 26, 2014 at 6:54 PM
Edited Apr 26, 2014 at 7: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));


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

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 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.

Apr 29, 2014 at 7:06 AM
hi kirmir,

thanks for your reply. should i include my source code file is already uploaded in onedrive. here is the url!126

from the above url just download the 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