How make FILE* from HANDLE in WinApi?

前端 未结 3 2094
别跟我提以往
别跟我提以往 2020-12-01 09:31

Is there easy way to create FILE* from WinApi HANDLE which points to one end of pipe? Something like we do in unix: fdopen(fd,);

3条回答
  •  悲&欢浪女
    2020-12-01 10:08

    you can't exchange(convert) them.. if you need to have a file with FILE* and HANDLE you need to open it twice

提交回复
热议问题