It seems the function DisconnectNamedPipe is not defined anywhere in the headers?! Can this be the problem?
Try to define it winbase.h (according to the documentation) and check what happens.
Does the application, compiled under Windows can call the function?
Andriy
__________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards� http://movies.yahoo.com/