C#: Method for retrieving an Icon from an Application
$30-250 USD
货到付款
Hi,
we need a simple method in C#.
Each program that is installed in Windows is listed as an uninstall entry in the registry. We need a method that allows us to get the icon for each of those entries:
/// <summary>
/// Get an icon belonging to a application
/// </summary>
/// <param name="uninstallKey">
/// The uninstall information of the application
/// a example key might be
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{90176341-0A8B-4CCC-A78D-F862228A6B95}"
///
/// </param>
/// <returns>the image data of this specific application</returns>
public static Image GetApplicationIcon(RegistryKey uninstallKey)
{
//Get the icon of a application
//Sometimes there is a key value named "DisplayIcon" that contains the information about the icon the be returned
//If there is no value named "DisplayIcon" there must be another way to get the Icon
//For example the Windows uninstaller always knows the Icons to be displayed
return <the icon for the application>
}
项目ID: #530496
关于项目
有4名威客正在参与此工作的竞标,均价$56/小时
Hi, I have 2+ yr exp in development. The application can be developed in the given time frame.