Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Type NetFwMgrType = Type.GetTypeFromProgID("HNetCfg.FwMgr", false);
- INetFwMgr mgr = (INetFwMgr)Activator.CreateInstance(NetFwMgrType);
- string allowed = mgr.LocalPolicy.CurrentProfile.IcmpSettings.AllowInboundEchoRequest;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement