2

WCF supports some interoperability bindings. Does any of these bindings allow to communicate with kernel mode sw?

AFAIK kernel mode sw can open named pipes, in the Local System security context. Are those named pipes interoperable with WCF?

Jader Dias
  • 88,211
  • 155
  • 421
  • 625

1 Answers1

2

Yes, you should be able to use the Named Pipes Binding in WCF to communicate with the Kernel Mode Software.

While it may be possible, it definitely won't be easy. Creating the WCF Service to serve the data over named pipes and a consumer won't be difficult.

Message Framing in WCF is where you are going to hit your snag. Your client will have to properly frame everything so that WCF can understand what you're trying to call. Here's a link detailing everything if you really want to give it a shot (I link to the last entry so you have links to the rest of the series as well).:

Message Framing, Part 7

Justin Niessner
  • 242,243
  • 40
  • 408
  • 536
  • are you sure that named pipes binding in wcf can communicate with non-wcf app? – Andrey Sep 23 '10 at 13:14
  • @Andrey - From what I've seen, yes. You just have to make sure whatever you're using to communicate over the Named Pipe binding serializes data in the same format (which may be difficult but not impossible). – Justin Niessner Sep 23 '10 at 13:18
  • in my case I don't worry about serialization yet, my objective here is just to call parameterless argumentless method – Jader Dias Sep 23 '10 at 13:22
  • the first snag I hit was making the addresses collide. I explained it further here: http://stackoverflow.com/questions/3789807/how-to-make-a-wcf-named-pipe-address-equal-to-a-winapi-one – Jader Dias Sep 27 '10 at 12:21