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

To which procees I need to attach my TSP inorder to debug TUISPI_providerConfig() from VC++?

13 views
Skip to first unread message

Akil Dsouza

unread,
Dec 3, 2009, 1:19:48 AM12/3/09
to
Hello Andreas,
 
To which procees I need to attach my TSP inorder to debug TUISPI_providerConfig() from VC++?
I am able to debug TUISPI_providerConfig() from telehon,cpl(hits breakpoints), I attach my TSP to proocess:rundll32.exe and title:Phone and Modem options.
But It is not hitting the breakpoints inside TUISPI_providerConfig(), If I attach  my TSP to proocess:rundll32.exe and title:Phone and Modem options upon calling lineConfigProvider()
from setup.exe.
 
In both cases, the log file shows entries inside TUISPI_providerConfig(). In the case of telephon.cpl, It is displaying the UI of my TSP. 
But in the second case(calling lineConfigProvider() from setup.exe), It is not displaying the UI of my TSP.
 
So I think something is going wrong inside TUISPI_providerConfig() in the second case(Please check the log file of my previous post).
What do you think? Any Suggestions??         
 
Thanks & Regards,
Akil

Andreas Marschall [exMVP TAPI]

unread,
Dec 3, 2009, 3:25:29 AM12/3/09
to
"Akil Dsouza" <d.a...@teles.com> schrieb im Newsbeitrag news:ew5QfC%23cKH...@TK2MSFTNGP05.phx.gbl...
To which procees I need to attach my TSP inorder to debug TUISPI_providerConfig() from VC++?
I am able to debug TUISPI_providerConfig() from telehon,cpl(hits breakpoints), I attach my TSP to proocess:rundll32.exe and title:Phone and Modem options.
But It is not hitting the breakpoints inside TUISPI_providerConfig(), If I attach  my TSP to proocess:rundll32.exe and title:Phone and Modem options upon calling lineConfigProvider()
from setup.exe.
Akil,
the UI is always running in the process that invoked it, i.e. rundll32.exe in the 1st and setup.exe in the latter case.

--
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
TAPI development around the world (Frappr! map):
http://www.frappr.com/TAPIaroundTheWorld
* Please post all messages and replies to the newsgroup 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.
 

Akil Dsouza

unread,
Dec 3, 2009, 4:24:55 AM12/3/09
to
Hello Andreas,
 
I am debugging both Install.exe(which invokes lineAddProvider() and lineConfigProvider()) and and my TSP in VC++
I have started debug of Install.exe(reached a breakpoint just before lineAddProvider) and from my TSP, if I click on "Attach to Process" 
the Install.exe process is disabled. So how can I attach my TSP to Install.exe process?   
 
Regards,
Akil
"Andreas Marschall [exMVP TAPI]" <Andreas....@I-B-A-M.de> wrote in message news:O2LDuI$cKHA...@TK2MSFTNGP04.phx.gbl...

Andreas Marschall [exMVP TAPI]

unread,
Dec 3, 2009, 4:39:28 AM12/3/09
to
"Akil Dsouza" <d.a...@teles.com> schrieb im Newsbeitrag news:umu47p$cKHA...@TK2MSFTNGP04.phx.gbl...
I am debugging both Install.exe(which invokes lineAddProvider() and lineConfigProvider()) and and my TSP in VC++
I have started debug of Install.exe(reached a breakpoint just before lineAddProvider) and from my TSP, if I click on "Attach to Process" 
the Install.exe process is disabled. So how can I attach my TSP to Install.exe process?   
Akil,
is there something specialabout your Install.exe process?
Maybe something reagrding elevation / user rights / run as admin?
Is Install.exe process running in the same user context than e.g. rundll32.exe or TB20.exe?
What OS are you using?

Akil Dsouza

unread,
Dec 3, 2009, 6:24:45 AM12/3/09
to
Hello Andreas,
 
If I dont run Install.exe in the debug mode, then I am able to attach my TSP to the Install.exe
It is hitting the break point inside TUISPI_providerConfig(). That means there is no problem till TUISPI_providerConfig().
But I am just surprised to see that the same TUISPI_providerConfig() implementation is displaying UI of my TSP from TB20, telephon.cpl
but not the lineConfigProvider() from Install.exe.
 
Any suggestions? 
 
Regards,
Akil
"Andreas Marschall [exMVP TAPI]" <Andreas....@I-B-A-M.de> wrote in message news:eS3dDy$cKHA...@TK2MSFTNGP05.phx.gbl...

Andreas Marschall [exMVP TAPI]

unread,
Dec 3, 2009, 8:45:47 AM12/3/09
to
"Akil Dsouza" <d.a...@teles.com> schrieb im Newsbeitrag news:%23KGp5sA...@TK2MSFTNGP06.phx.gbl...
If I dont run Install.exe in the debug mode, then I am able to attach my TSP to the Install.exe
It is hitting the break point inside TUISPI_providerConfig(). That means there is no problem till TUISPI_providerConfig().
But I am just surprised to see that the same TUISPI_providerConfig() implementation is displaying UI of my TSP from TB20, telephon.cpl
but not the lineConfigProvider() from Install.exe.
 
Any suggestions? 
"Andreas Marschall [exMVP TAPI]" <Andreas....@I-B-A-M.de> wrote in message news:eS3dDy$cKHA...@TK2MSFTNGP05.phx.gbl... 
is there something specialabout your Install.exe process?
Maybe something reagrding elevation / user rights / run as admin?
Is Install.exe process running in the same user context than e.g. rundll32.exe or TB20.exe?
What OS are you using?
Akil,
you didn't answer my previous questions above.
 
You may want to try to step with the debugger through your TUISPI_providerConfig() code in both bad and good cases (from Install.exe and from TB20.exe/rundll32.exe) and compare where exactly the different behaviour takes place.

Akil Dsouza

unread,
Dec 4, 2009, 12:48:49 AM12/4/09
to

Hello Andreas,

 

Inside TUISPI_providerConfig() method I have a DialogBox() method which takes 4th argument as DialogProc.

This DialogProc is called many times(100-200) in the success case(TB20.exe & rundll32.exe) and in the failure case(Install.exe) it is called only 2 or 3 times.

 In the sucess case return value from DialogBox() method is 0x00000001 or 0x00000002 and in the failure case it is 0xffffffff

But my question is why the same DialogProc method is acting differently in the 2 cases?  

Any Suggestions? Please help.

Regarding previous questions,

>>Now I am able to attach my TSP with Install.exe

>>My OS: Windows XP Professional SP-3

 

Regards,

Akil

 
"Andreas Marschall [exMVP TAPI]" <Andreas....@I-B-A-M.de> wrote in message news:uH$6s7BdK...@TK2MSFTNGP06.phx.gbl...

Andreas Marschall [exMVP TAPI]

unread,
Dec 4, 2009, 10:33:25 AM12/4/09
to
"Akil Dsouza" <d.a...@teles.com> schrieb im Newsbeitrag news:uPjx2VKd...@TK2MSFTNGP02.phx.gbl...

Inside TUISPI_providerConfig() method I have a DialogBox() method which takes 4th argument as DialogProc.

This DialogProc is called many times(100-200) in the success case(TB20.exe & rundll32.exe) and in the failure case(Install.exe) it is called only 2 or 3 times.

 In the sucess case return value from DialogBox() method is 0x00000001 or 0x00000002 and in the failure case it is 0xffffffff

But my question is why the same DialogProc method is acting differently in the 2 cases?  

Akil,
sorry, I don't know, but my suspect is user rights etc.
Hence my previous question: in which user accounts are Install.exe and rundll32.exe running.
Please check this in TaskManager: there you can see the user of each process.
Maybe you need to add the user column first.
In addition you may need to check the checkbox for diaplying all users' processes.
- what user is diplayed in TaskMan for install.exe?
- what user is diplayed in TaskMan for rundll32.exe?
 
Does you intercative user (currently logged on user) have admin privileges?
 
Does you TSP / UI anithing related to currently logged on user ?
 
0 new messages