added "return value" for winapi in db