dmain2: Use core.sys.windows.windows