update to latest winapi changes