JamesHovious/w32

HWND vs syscall.Handle in function declarations?

Closed this issue · 1 comments

There's a definition for the type HWND in typedef.go, but it seems that many functions use syscall.Handle to type the hwnd parameter... for example, GetWindowTextW from user32.go.

Is there a reason for that?

I don't believe so. It should probably be fixed. Just cast so that it works: syscall.Handle(hwnd)