matlab due 10 hours

What I need is the following: I need an implementation in matlab under windows to open a named pipe and to read data from the pipe (an other program writes into the pipe) in quasi realtime. I don’t want to use any other programs than matlab, so one probably has to work with mex files or with .net.