public static bool SetMaxThreads(int workerThreads, int completionPortThreads) { return(ThreadPool.SetMaxThreadsNative(workerThreads, completionPortThreads)); }