public static async Task <bool> LaaDisable(string path) { if (!File.Exists(path)) { return(false); } LaaFile file = new LaaFile(path); if (!file.LargeAddressAware) { return(false); } file.WriteCharacteristics(false); return(true); }
public static async Task <bool> LaaSwitch(string path) { if (!File.Exists(path)) { return(false); } LaaFile file = new LaaFile(path); if (file.LargeAddressAware) { file.WriteCharacteristics(false); } else { file.WriteCharacteristics(true); } return(true); }