Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Named pipes or rpc ... AND HOW/WHY

Status
Not open for further replies.

Zyrenthian

Programmer
Mar 30, 2001
1,440
US
I have a process I want to have communicate with another one. I have 2 options and they are Named Pipes or RPC, both of which I have never used. So my questions are:

Does anyone have any experience with either of these and if so, can you give me some pointers on how to go about it.

Which is better or are they both the same?

I tried searching tek-tips but didnt really find anything very useful. I also went to msdn to see if they had any code samples but there was not. My searches so far have not been too extensive so I may have overlooked something and searched on the wrong keywords. Next stop is codeguru.

Thanx for any help you can provide

Matt
 
In MSDN you will eventually find some RPC examples but they are no good :)) I have been there I know)

There are two groups of APIs for RPC Ndr... and Rpc..
for the one begging with Rpc.. MSDN is documewnted for the others , he-he Microsoft's secrets....

With named pipes I have't worked yet, I had only played with ordinary pipes. But why don't you try to work with multi-threading (I know you are trying to solve the problem with InpersonateLoggedOnUser) - you cannot impersonate at thread level, gotta go up to the process level?

Inter-threading communication is much more easyer to handle with global variabiles , events, critical sections , Interlocked fucntions & OTHER STUFF.

Hope this helps, s-)

Blessed is he who in the name of justice and good will, shepards the week through the valley of darknees...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top