Discussion:
Debugging TSP in Windows 7 x64
(too old to reply)
f***@aczire.com
2013-08-31 10:15:25 UTC
Permalink
Hello
I followed the notes on Andreas Marshall's TAPI and TSP FAQ site and was trying to edit my HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv\ImagePath
to "C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\msdev.exe"
%SystemRoot%\System32\svchost.exe -k tapisrv according to the doc. But found the registry keys are different for Windows 7.

Any idea how to debug the same?

Using Win 7 x64.
t***@aczire.com
2013-09-04 19:36:38 UTC
Permalink
Found the solution at last and for the record,

Use tasklist /m tapi* as administrator. Attach to the process having tapisrv.
Andreas Marschall [exMVP TAPI]
2013-09-05 09:51:23 UTC
Permalink
Post by t***@aczire.com
Use tasklist /m tapi* as administrator. Attach to the process having tapisrv.
Yes, this is working in general, but with this approach you cannot debug initializing issues on startup...

In addition it is strongly recommended to change TAPISRV to run in its own, exclusive SVCHOST process before starting to debug it in any way.
Otherwise you will stop other network services too!
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.I-B-A-M.de/Andreas_Marschall's_Toto_Tools.htm
* Please post all messages and replies to the group / forum so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
t***@aczire.com
2013-09-05 20:00:57 UTC
Permalink
Yes, that is what happening now for me. So how you do that in Win7x64??

It seems the tapi server is a dll now. So how do we spawn it its own svchost??
Andreas Marschall [exMVP TAPI]
2013-09-07 22:34:09 UTC
Permalink
Post by t***@aczire.com
It seems the tapi server is a dll now. So how do we spawn it its own svchost??
TAPISRV is a DLL using SVCHOST.exe since Windows 2000...

On a client OS (Vista, Win7 etc.) you can change the SvcHost mode for TAPISRV from shared mode to exclusive mode.
This has been discussed several times in this group, e.g.:
http://groups.google.com/d/msg/microsoft.public.win32.programmer.tapi/PDCTZhEUk3Q/G-_O4RMO15wJ
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.I-B-A-M.de/Andreas_Marschall's_Toto_Tools.htm
* Please post all messages and replies to the group / forum so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
t***@aczire.com
2013-09-05 20:05:29 UTC
Permalink
Also, got another query at http://stackoverflow.com/questions/18621809/access-user-info-at-hkcu-from-tapi-service-provider-tsp

Can you please help??
Andreas Marschall [exMVP TAPI]
2013-09-07 22:26:05 UTC
Permalink
Post by t***@aczire.com
Also, got another query at http://stackoverflow.com/questions/18621809/access-user-info-at-hkcu-from-tapi-service-provider-tsp
To debug a TSPI_lineMakeCall() issue you can use the "attach to process" approach and set a break point at the first instruction within your TSPI_lineMakeCall() code.
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.I-B-A-M.de/Andreas_Marschall's_Toto_Tools.htm
* Please post all messages and replies to the group / forum so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
Andreas Marschall [exMVP TAPI]
2013-10-19 23:22:59 UTC
Permalink
Post by f***@aczire.com
Any idea how to debug the same?
JFTR this might be of general interest in this regard:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff540613(v=vs.85).aspx
--
Best Regards
Andreas Marschall
Microsoft MVP for TAPI / Windows SDK / Visual C++ 2003-2008
TAPI / TSP Developer and Tester
My TAPI and TSPI FAQ:
http://www.I-B-A-M.de/Andreas_Marschall's_TAPI_and_TSPI_FAQ.htm
My Toto® Tools (a collection of free, mostly TAPI related tools):
http://www.I-B-A-M.de/Andreas_Marschall's_Toto_Tools.htm
* Please post all messages and replies to the group / forum so all may
* benefit from the discussion. Private mail is usually not replied to.
* This posting is provided "AS IS" with no warranties, and confers no rights.
Loading...