Try to use more windows-friendly API