Find an MPF Procedure


function FindMPFProc(nsName, procName)
{
		var nsFound = FindMPFNamespace(nsName);
	
		if (!nsFound)
				return null;
			
		try
		{
				var procFound = mpf.Get("MSFT_MPFProcDefinition.Namespace='" +
														nsFound.Path_.Relpath + "',ProcedureName='" +
														procName + "'");
													
				return procFound;
	}
		catch(err)
		{
				return null;
	}	 
}

See Also

MSDN® information on Windows Management Instrumentation (WMI) and Windows Script Host


Up Top of Page
© 1999-2002 Microsoft Corporation. All rights reserved.