core: WINAPI should be set on the pointer