Creates a pool on a cluster based on the supplied name with a desired weight. An exception is thrown if a pool with the same name exists.
HRESULT CreatePool( [in] BSTR *poolName, [in] long poolWeight, [out] ISchedulerPool *pool );
The name of the pool that will be created on the cluster.
The weight of the pool that will be created on the cluster. The pool weight must be greater or equal to 0, otherwise an exception is thrown.
The new pool.
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code. To get a description of the error, access the ISchedulerJob::ErrorMessage property.
This method was introduced in Windows HPC Server 2008 R2 Service Pack 2 (SP2) and is not supported in previous versions.