[go-nuts] Re: Windows "syscalls" and Go pointers

2020-10-26 Thread Constantine Shablya
? On Monday, October 26, 2020 at 4:23:13 AM UTC+2 Constantine Shablya wrote: > Hello, > > I wish to call some Windows functions, some of which take pointers to types > which themselves contain pointers. For this purpose I intended to use > golang.org/x/sys/windows/mkwinsyscall.go

[go-nuts] Windows "syscalls" and Go pointers

2020-10-25 Thread Constantine Shablya
Hello, I wish to call some Windows functions, some of which take pointers to types which themselves contain pointers. For this purpose I intended to use golang.org/x/sys/windows/mkwinsyscall.go and not cgo; in past I have implemented a package that uses WASAPI by generating "syscall" bodies with

Re: [go-nuts] Safe ways to call C with less overhead

2020-04-30 Thread Constantine Shablya
Thanks for reply, Ian To clear up, by safety I only mean presence of stack guards or, more generally, means of ensuring the program doesn't silently end up writing past the stack. >From this I take my next step will be to make something between systemstack and asmcgocall so that I still run (subs