Hey everyone, this is a really quick question.

Could someone give me an example of using the CreatePipe() W32API function to open a pipe to a console application, and print the results?

I'd like to see the shortest example you have. I've looked on MSDN but the example they gave was absolutley huge and I'm very tired, so I dont feel much up to reading it.

Any information would be most valued. Thanks