SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 186 | Next

David A. Karp

"Windows Vista Annoyances: Tips, Secrets, and Hacks"


The (Default) value in the DefaultIcon key mentioned in the previous section
contains the full path and filename of the file containing the default icon.
Often it points right to the application executable that uses the file (e.g.,
excel.exe for .xls files), but sometimes it references a .dll or .ico file containing a
bunch of icons. The filename is then followed by a comma and then a number
(called the index) that indicates which icon to use. For example:
C:\Program Files\Photoshop\Photoshop.exe,15
points to the file Photoshop.exe, located in the C:\Program Files\Photoshop
folder, and references the 16th icon in that file (0 or no number indicating
the first icon, 1 indicating the second, and so on).
128 | Chapter 3: The Registry
Occasionally, you may see something like this in the DefaultIcon key:
%SystemRoot%\system32\wmploc.dll,-731
Here, %SystemRoot% is a variable that represents the Windows folder (usually
C:\Windows). When the (Default) value in which this information is stored
is an expandable string value (described in ???The Meat of the Registry: Values,???
earlier in this chapter), Windows converts the filename to C:\Windows\
System32\wmploc.dll before retrieving the icon. You may also sometimes
notice a negative value following the filename (-731, in this case) which represents
the resource ID of the icon to use??”as opposed to a positive value
indicating the index (position) of the icon as described earlier.
In most cases, you can specify your own icon for a given file type by placing
the full path to an .


Pages:
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6