Personalized Icons for Devices on Windows XPUpdated: January 13, 2003
On This Page
IntroductionDevice manufacturers can create personalized, or custom, product icons and include them in their driver packages so that the end-user sees an icon that resembles the actual device. These personalized icons will be visible in the Autoplay window and in My Computer under the Windows operating system. This article summarizes the key information for creating custom icons and including such icons in a driver package. The information in this article applies to devices and drivers designed to work with Microsoft Windows XP, Windows XP Embedded, and Windows Server 2003. Creating Icons Based on Windows XP Design GuidelinesThe Microsoft publication Creating Windows XP Icons provides step-by-step guidelines for creating icons that have the "look and feel" of Windows XP graphical elements. The key elements for custom icon design for Windows XP include:
Creating Windows XP Icons is available at: http://msdn2.microsoft.com/en-us/library/ms997636.aspx. Including Icons in Device Driver PackagesNote: The following information will be included in a future version of the Windows DDK. Once you have created a custom icon for a device, you can include the icon in the device driver package by referencing it in the INF file. The DDInstall.HW section is used to set driver-independent information that is device-specific. In the sample INF sections that follow, the DDInstall.HW section points to a separate AddReg section, which specifies the personalized icons. [DDInstall.NT.HW] The AddReg section in this example defines two separate registry values and corresponding icon files, one for the custom icon to display when media is present, and a second, "NoMediaIcons," which specifies an icon to be used to indicate the same device when no media is inserted. The following example shows the registry entries for a Vid_0000&Pid_0000 device and the dynamic-link library (DLL) files that contain the "media inserted" and "no media" versions of the icon.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\
Vid_0000&Pid_0000\059B003112010E93\Device Parameters
In the INF file, icon files must be listed in the [SourceDisksFiles] section within the INF file, and copied to the user's system by either a CopyFiles directive or a CopyFiles section. During driver installation, the INF entries listed in the example will be stored in the Device Parameters subkey within HKLM\System\CurrentControlSet\Enum. Drivers or other code should never access or modify this registry key directly; instead, use one of the following APIs:
For information about the INF entries cited here, see the Device Installation Reference in the current Windows DDK. Call to Action and ResourcesCall to action for creating personalized device icons:
Feedback:
Resources:
|
|
