Made BeginPutFile extensible.