Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. Type NetFwMgrType = Type.GetTypeFromProgID("HNetCfg.FwMgr", false);
  2. INetFwMgr mgr = (INetFwMgr)Activator.CreateInstance(NetFwMgrType);
  3. string allowed = mgr.LocalPolicy.CurrentProfile.IcmpSettings.AllowInboundEchoRequest;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement