Click here to Skip to main content
15,885,757 members
Articles / Desktop Programming / MFC

Changing Drive Icons in Windows 2000

Rate me:
Please Sign up or sign in to vote.
3.40/5 (4 votes)
15 May 2003CPOL 55.1K   754   10   1
This article explains how to change the specified Drive Icon using VB 6. This is only tested with Windows 2000.
Sample screenshot

Introduction

This demo project explains how to change specified Drive Icon using VB6 in windows 2000 by manipulating the Registry. The demo project also includes a Module, explaining how to edit the registry using Registry API.

It allows to change the specified drive icon to the given path and also allows to revert back to the default icon of Windows.

For example: If you want to change Drive E icon, you need to create the Registry Value named:

HEKEY_LOCAL_MACHINE\software\Microsoft\Windows\CurrentVersion\Explorer\DriveIcons\E\
DefaultIcon\

When you create the above name key, it automatically creates a string named "Default".
Set its value to the path of the icon.

History

  • 15th May, 2003: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Questionthanks sbro.... Pin
afdoal18-Sep-11 1:38
afdoal18-Sep-11 1:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.