473,804 Members | 3,200 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need to find Icon for MyComputer

I found the icons for files and folders using
Call SHGetFileInfo(s ubDir, 0, mSHI, mSHISize, Win32.Shell.SHG FI_ICON)

but can't find the system icon for MyComputer.

Later I'd like to also find a way of tapping into the icons used by the
system for MyNetworkPlaces , Desktop ...
Any suggestions??

Nov 20 '05 #1
2 1322
Any suggestions??


Call SHGetFileInfo with the SHGFI_PIDL flag, and specify the PIDL for
My Computer rather than a file path as the first parameter. You can
get PIDLs for the common system folders with
SHGetSpecialFol derLocation.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 20 '05 #2
Sounds like what I need

thanks

"Mattias Sjögren" <ma************ ********@mvps.o rg> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Any suggestions??


Call SHGetFileInfo with the SHGFI_PIDL flag, and specify the PIDL for
My Computer rather than a file path as the first parameter. You can
get PIDLs for the common system folders with
SHGetSpecialFol derLocation.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Nov 20 '05 #3

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

Similar topics

5
1246
by: bjorgenson | last post by:
Here is my dilema: I want a form that includes an input box and submit button. A user will type in some data in the input box. When they click submit, I need set variables appended to this input text and then passed on to the same page "_parent" as a new url. For example: The user types in "mycomputer". When submited, I need to add the following text to the beginning and end of "mycomputer"
0
1224
by: SamSpade | last post by:
Below is how I add the drives to an explorer like TreeView. What I don't know how to do is to add an Icon for MyComputer. Any help would be appreciated. Dim SysIconList% = WinApi.SHGetFileInfo(IntPtr.Zero, 0, SFI, Marshal.SizeOf(SFI), Win32.Shell.SHGFI_SYSICONINDEX +
0
5695
by: nkotbox | last post by:
I have this script to enable/disable my wireless nic on my laptop. Is it possible for the scripts icon or shortcut to the script to change icons depending on whether or not the nic is enabled. So if the wireless nic was enabled then the script icon would be my on.ico and if it were disabled the the icon would be my off.ico heres the script Const ssfCONTROLS = 3 sConnectionName = "wireless network Connection" sEnableVerb = "En&able" ...
3
9886
by: Mike Wesling | last post by:
Hi, does anyone know how to show the OpenFileDialog with "My Computer" as InitialDirectory? I tried it with openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyComputer);
7
9703
by: tman | last post by:
I am generating a very large tree list in my program and while it's performance is great once loaded it takes a really long time to load. I create a root TreeNode "offline" and go through the process of creating building up the tree from there. Only when I am done do I go over to the actual TreeView object on my form and add the my root to the TreeView. This sinlge step when I add my constructed root node to the form's TreeView control...
2
2384
subashini Thiyagarajan
by: subashini Thiyagarajan | last post by:
My My Computer Icon has vanished from the desktop.now made some shortcut. how to bring back my original. while dragging other folder near this icon,my computer has disappeared.
1
1813
by: Jay | last post by:
Hello, Not sure if this is the group to post this or not, but I need some help. I'm working on a website and they want to add the little icon that is to the left of the "http://www............." Looking at this page right now google has the two white cloud things on both the tab and up in the address bar. I see many sites now have this but I'm not sure what it's called and I can't find any code on it about this,
7
3327
by: Dave | last post by:
Hello All, These one may be a bit tricky, and what I'd like to do may not even be possible. I would love to hear any ideas you guys have for solving this. Here is the situation: I have a form that displays the high-level data for a set of records in continuous forms mode. I have a simple command button that will open another form with the details of the selected record.
8
2467
vdraceil
by: vdraceil | last post by:
Hi... When i installed Nokia PC Suite, it just created a link to its application directly in MyComputer. I can just see it below my drives. I never thought this would be possible. Does anyone know what registry changes i have to make,so that my application appears in MyComputer window?
0
9584
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10337
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10082
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9160
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6854
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4301
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3822
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.