lxn / win

A Windows API wrapper package for the Go Programming Language
Other
1.21k stars 315 forks source link

Use syscall.GUID #5

Closed bbigras closed 10 years ago

lxn commented 10 years ago

I wasn't aware of syscall.GUID. Maybe there are some more "hidden treasures"?

Please add yourself to the AUTHORS file.

Thanks!

bbigras commented 10 years ago

I wasn't aware of syscall.GUID. Maybe there are some more "hidden treasures"?

I think syscall.GUID is not listed on http://golang.org/pkg/syscall/ because it's not the Windows' version. It's listed if you run godoc -http=:6060 on a Windows machine and browser http://localhost:6060/pkg/syscall/.

Yes maybe there's more.

Please add yourself to the AUTHORS file.

Done.

lxn commented 10 years ago

Thanks!

carleeto commented 10 years ago

syscall.GUID results in an error when cross compiling to Windows from Linux.

$ go version
go version go1.2 linux/amd64
$ go get ./...
# github.com/lxn/win
../../../github.com/lxn/win/ole32.go:56: undefined: syscall.GUID
lxn commented 10 years ago

Sorry for the late reply. I haven't thought about cross compiling. Have you also tried to cross compile walk? Feel free to send a pull request, if you like.

Thanks!

carleeto commented 10 years ago

Yeah I was trying to cross compile walk, which imports win in ole32. That's where the cross compile issue showed up. Will submit a pull request soon.