473,378 Members | 1,429 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

About changing the icon of network driver.

I'm writing some program.
In it, I connect network drive using WNetAddConnection2 function.
It works well. And I want to change the icon of that network drive in explorer to my own icon.
If then, I can easily find out which one is connected by my program.
Is it possible? If, how can I?

Please, show me the codes.

Thanks.
Nov 16 '05 #1
1 1290
Microsoft does not expose any APIs for changing drive icons, but it's
possible to do it via the registry.

http://www.virtualplastic.net/html/icn_drv.html

-- Dan

"kite" <an*******@discussions.microsoft.com> wrote in message
news:6B**********************************@microsof t.com...
I'm writing some program.
In it, I connect network drive using WNetAddConnection2 function.
It works well. And I want to change the icon of that network drive in explorer to my own icon. If then, I can easily find out which one is connected by my program.
Is it possible? If, how can I?

Please, show me the codes.

Thanks.

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
3
by: Charlotte | last post by:
Hi there, does anyone know the HTML code or Java script for changing the website icon when other people add the link to their favourites menu?? Thanks~ Charlotte
2
by: pnp | last post by:
I want to display in a form all the icons of an icon file, that has icons with both 32bit colordepth and 24bit colordepth, simultaneously. I tried using ImageLists with different colordepth...
5
by: Mike McIntyre [MVP] | last post by:
I am working on an issue where and ASP.NET web application on one computer (A) needs to access files on a network mapped drive (B). This application uses as DSN on (A) that maps a proprietory...
1
by: david.kao | last post by:
Hi All: Yesterday, we released our first .NET window based program on company’s network. In order to make our .NET program run correctly from a shared network driver, we also installed a...
0
by: Yama | last post by:
Hi All I am trying to access a Fox Pro Free Table on the network as follow Dim cmd As New OdbcCommand Dim conn As OdbcConnection = New OdbcConnection("Driver={Microsoft Visual FoxPro Driver};"...
14
by: Kishan Hathiwala | last post by:
Hi i have kept a statusbar in the form with panels = true. and total there 3 panels. whenever i click on the 3rd panel a menu appears showing online and offline and either is enable at a time....
1
by: =?Utf-8?B?Sm9obiBNdXJwaHk=?= | last post by:
....and can't get it back. I think there may be a bug in Vista. Twice now, when drawing the cursor across an Icon in the "Computer" window, the cursor has picked up the Icon and when it slid...
4
by: james457 | last post by:
Hi all, I am writing a linux testbed for wireless sensor networks. The core objective is to test data transfer between any two nodes. The network runs using tree topology. One node in the network...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.