5/13/2011

This method returns the name of the device imaging component.

Syntax

public string GetOEMPluginName(
  int 
LCID
);

Parameters

LCID

[in] Locale ID of the device imaging component display name. Used to determine which language will be used to return strings.

Return Value

Returns the display name of the device imaging component in the language specified by LCID.

Remarks

None

Example

The following code example enumerates all registered device imaging components and prints their unique IDs and friendly names. For information about calling the code example, see Calling WMI Providers Code Examples.

Copy Code
public void EnumeratePlugins(ManagementScope scope)
{
	// Select a query for all device imaging components
	SelectQuery query = new
SelectQuery("EDM_ImageDeploymentPlugin");
	ManagementObjectSearcher searacher = new
ManagementObjectSearcher(scope, query);

	// Enumerate all device imaging components and print the name
and ID for each component
	foreach(ManagementObject plugin in searacher.Get())
	{ 			 
		ManagementBaseObject inParams =
plugin.GetMethodParameters("GetOEMPluginName");
		// Add the input parameters
		inParams["LCID"] = 1033; // 1033 - English (United States)
locale ID

		// Call the GetOEMPluginName method to get the display name
		ManagementBaseObject outParams =
plugin.InvokeMethod("GetOEMPluginName", inParams, null);

		// Print the name of the device imaging component and the
device imaging component ID
		Console.WriteLine(string.Format("Name: {0}, ID: {1}",
														 
outParams["ReturnValue"],
														 
plugin["OEMPluginID"]));
}
}

See Also