[DF-4152] Removed wring Retain() for windows. Const modifier added to some methods.