Support for callback on windows once openned