rodrigocfd / windigo

Windows API and GUI in idiomatic Go.
https://pkg.go.dev/github.com/rodrigocfd/windigo
MIT License
405 stars 22 forks source link

add CreateNamedPipe(), ConnectNamedPipe(), DisconnectNamedPipe() #16

Closed kjk closed 1 year ago

kjk commented 1 year ago

Hi Rodrigo, great project.

I needed those functions so adding.

I made result of CreateNamedPipe an HFILE because I need to call ReadFile() on it.

It could also return HANDLE or a new type HPIPE but if it was HPIPE, would need to duplicate ReadFile, CloseHandle etc.

Not sure if ConnectNamedPipe() should be methods on HFILE, I made them straightforward args.

kjk commented 1 year ago

Thanks!