public bool SetStatic(string ip, string netmask) { int retVal = WMIMethod.ExecuteMethod(this, new { IPAddress = new string[] { ip }, SubnetMask = new string[] { netmask } }); if (retVal != 0) { Console.WriteLine($"Failed to set network settings with error code {retVal}"); } return(retVal == 0); }
public int AttachDebugger() { return(WMIMethod.ExecuteMethod <int>(this)); }
public ProcessOwner GetOwner() { return(WMIMethod.ExecuteMethod <ProcessOwner>(this)); }
public dynamic GetOwnerSid() { return(WMIMethod.ExecuteMethod(this)); }
public void RenamePrinter(string newName) { WMIMethod.ExecuteMethod(this, new { NewPrinterName = newName }); }
public dynamic Activate() { return(WMIMethod.ExecuteMethod(this)); }