见标题。在命名管道的客户端,我想确定要从命名管道读取的内容的大小,以便为缓冲区分配内存以获取内容。MSDNhelp说:YoucannotusetheGetFileSizefunctionwithahandleofanonseekingdevicesuchasapipeoracommunicationsdevice.TodeterminethefiletypeforhFile,usetheGetFileTypefunction.嗯。好的。但是如果我不能使用GetFileSize要确定从管道可读的数据量,我应该使用什么?目前,我做length=GetFileSize(pipehandle,