adjust code followed by go-winapi