microsoft / go-winio

Win32 IO-related utilities for Go
MIT License
946 stars 180 forks source link

How to use the named pipe as async pipe? #224

Open heimao63531 opened 2 years ago

heimao63531 commented 2 years ago

i check the code in the pipe.go, and found it will create a SYNCHRONIZE pipe in makeServerPipeHandle.
access := uint32(syscall.GENERIC_READ | syscall.GENERIC_WRITE | syscall.SYNCHRONIZE) However, i'd love to create an async pipe , how can i make it? would you provide an example?