public static GetServiceProcessorAffinity ( string serviceName ) : bool[] | ||
serviceName | string | the service name. |
return | bool[] |
public static bool[] GetServiceProcessorAffinity(string serviceName)
{
Service service = GetService(serviceName);
int processId = service != null ? service.ProcessId : 0;
return GetProcessorAffinity(processId);
}