Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debugging TSP in Windows 7 x64

316 views
Skip to first unread message

for....@aczire.com

unread,
Aug 31, 2013, 6:15:25 AM8/31/13
to
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.

toms...@aczire.com

unread,
Sep 4, 2013, 3:36:38 PM9/4/13
to
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]

unread,
Sep 5, 2013, 5:51:23 AM9/5/13
to
Am Mittwoch, 4. September 2013 21:36:38 UTC+2 schrieb toms...@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.

toms...@aczire.com

unread,
Sep 5, 2013, 4:00:57 PM9/5/13
to
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??

toms...@aczire.com

unread,
Sep 5, 2013, 4:05:29 PM9/5/13
to

Andreas Marschall [exMVP TAPI]

unread,
Sep 7, 2013, 6:26:05 PM9/7/13
to
Am Donnerstag, 5. September 2013 22:05:29 UTC+2 schrieb toms...@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.

Andreas Marschall [exMVP TAPI]

unread,
Sep 7, 2013, 6:34:09 PM9/7/13
to
Am Donnerstag, 5. September 2013 22:00:57 UTC+2 schrieb toms...@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

Andreas Marschall [exMVP TAPI]

unread,
Oct 19, 2013, 7:22:59 PM10/19/13
to
Am Samstag, 31. August 2013 12:15:25 UTC+2 schrieb for....@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
0 new messages