AssaultCubeHack
AssaultCubeHack copied to clipboard
Uneeded sp.Demand
//Get permission for working with UnmanagedCode
//msdn.microsoft.com/en-us/library/xc5yzfbx(v=vs.110)
//msdn.microsoft.com/en-us/library/ff648663.aspx#c08618429_020
try {
SecurityPermission sp = new SecurityPermission(SecurityPermissionFlag.UnmanagedCode);
sp.Demand();
} catch (Exception ex) {
Console.WriteLine("Demand for SecurityPermissionFlag.UnmanagedCode failed: " + ex.Message);
}
According to the MSDN for this, this is probably not needed anymore.