Set Access Type of MPF Procedure


function MakeProcPrivate(nsName, procName)
{
	var procFound = FindMPFProc(nsName, procName);

	if (procFound == null)
		ReportError("Failed to procedure named '" + procName + 
			"' in namespace named '" + nsName + "'.");
	
	// Set to private.
	procFound.AccessType = 0;

	// Save the procedure.
	procFound.Put_();

See Also

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


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