#include "stdafx.h"
using namespace System;
using namespace System::Security;
using namespace System::Security::Permissions;
using namespace System::Security::Policy;
void main()
{
CodeGroup^ machine;
System::Collections::IEnumerator^ ph = SecurityManager::PolicyHierarchy();
for (int i = machine->Children->Count - 1; i >= 0; i--)
{
if(((CodeGroup^)machine->Children[i])->Name == "ReadOnly Secure Group")
{
machine->RemoveChild(((CodeGroup^)machine->Children[i]));
}
}
SecurityManager::SavePolicy();
}
|