From 38800f027f12f419c361969f517f298d44e5ca37 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 3 Jun 2014 03:19:19 -0400 Subject: Converted sysdata_windows.go to use the new string conversion setup from the previous commit. This has to be first, otherwise a few other things will fail to compile... --- common_windows.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'common_windows.go') diff --git a/common_windows.go b/common_windows.go index 2c1c3fd..f2440f1 100644 --- a/common_windows.go +++ b/common_windows.go @@ -83,6 +83,10 @@ func utf16ToArg(s *uint16) uintptr { return uintptr(unsafe.Pointer(s)) } +func utf16ToLPARAM(s *uint16) uintptr { + return uintptr(_LPARAM(unsafe.Pointer(s))) +} + var ( _adjustWindowRectEx = user32.NewProc("AdjustWindowRectEx") _createWindowEx = user32.NewProc("CreateWindowExW") -- cgit v1.2.3