doug
August 19th, 2003, 22:11
Hi,
I had a post on the temp. msgboard about debugging Remote Procedure Calls (RPC) on Windows.
Since it appears to have died with the temp board, I will post again here. (nb: this has nothing to do with the recent msblaster issue)
I was debugging functions relative to the Open SC Manager on 2K/XP, to see how they were handled internally, and quickly realized the code in advapi was just a stub that called an RPCRT4 function (NdrClientCall2). Now the tricky part is inside rpcrt4... the NdrClientCall2 ends up sending its request and just turns into a "listen mode", waiting for the reply to arrive. When it gets the reply, it copies the result into the user supplied buffer, and returns back into advapi.
Does anyone have ideas/suggestions/docs/tricks/tools that I could use to make my debugging easier? I don't know how to monitor the other side of the rpc calls, i.e: the one processing the request. Any info would be appreciated.
Furthermore, does anyone here have experience in debugging Open SC Manager's internals?
--
dougg
I had a post on the temp. msgboard about debugging Remote Procedure Calls (RPC) on Windows.
Since it appears to have died with the temp board, I will post again here. (nb: this has nothing to do with the recent msblaster issue)
I was debugging functions relative to the Open SC Manager on 2K/XP, to see how they were handled internally, and quickly realized the code in advapi was just a stub that called an RPCRT4 function (NdrClientCall2). Now the tricky part is inside rpcrt4... the NdrClientCall2 ends up sending its request and just turns into a "listen mode", waiting for the reply to arrive. When it gets the reply, it copies the result into the user supplied buffer, and returns back into advapi.
Does anyone have ideas/suggestions/docs/tricks/tools that I could use to make my debugging easier? I don't know how to monitor the other side of the rpc calls, i.e: the one processing the request. Any info would be appreciated.
Furthermore, does anyone here have experience in debugging Open SC Manager's internals?
--
dougg