"I want to call RegisterClassW which takes a pointer to WNDCLASSW as its
parameter. One of the members of WNDCLASSW is lpszClassName of LPCWSTR type
(UTF-16 string). This puzzled me as to how I should approach allocating
storage for that string?"
Win32 API:
RegisterClassW function:
https://d
Amending question above: is it ok for a function that takes pointer to a
pointer
(so f(x *unsafe.Pointer) or f(**T)) to write a pointer (*x =
unsafe.Pointer(...)
or *x = (*T)(...)) or should it store an uintptr (as in f(x *uintptr)) and
that
uintptr then be cast to a pointer to appropriate type?