Questions about folders "My Recent Document", "Desktop", "My Pictures",...

  • Thread starter Thread starter Just Me
  • Start date Start date
J

Just Me

1)How can I find the folders like "My Recent Document", "Desktop", "My
Pictures",...
if I want to store a file there?

2) How can I find the icon for those files if I want to display it?


Thanks in advance for any helpful suggestions


BTW

Not VB.net but does anyone happen to know how to use XCOPY or COPY to copy
something to the all users folder whatever the name (I have a system in
which it is called "All Users.WINDOWS" and another in which it is called
"All Users"
 
1) Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)
2) I think you have to use an API call to get the icon, I'm not sure.
 
Herfried K. Wagner said:
FYI, his code just returns the standard image of a manila folder.
I've been looking and asking for some time and now believe that no one know
how to get, for example, the Desktop icon. Probably someone wrote the code
for Win95 and passed on to MS heaven and no one has since figured out where
the icon is hidden.

Thanks for the reply
 
This question is mostly for Herfried (his web site explictly asked that
people refrain from sending mail in reference to programming) , but anyone
please feel free to answer.

I followed the link, and tried to create a class in vb, but, I find the
article is incomple when comparing it to the sample application. What I
would like to do, is be able to identitify needed structures when using API
calls, but, I am missing something. I really don't know where to start; I
can lookup up the structures on MSDN and duplicate them for the most part,
it's just I don't understand the naming convertions for the C++ structures
or marshalling (when to do it, what it's for, etc.). Are there any good
articles that teach the basics of Win32 API programming? Can you make a
recommendation on any books? On a side note what does := (Colon Equals) do,
I mean the actual operator?

Thanks in advance,
Jared
 
* " Just Me said:
FYI, his code just returns the standard image of a manila folder.
I've been looking and asking for some time and now believe that no one know
how to get, for example, the Desktop icon. Probably someone wrote the code
for Win95 and passed on to MS heaven and no one has since figured out where
the icon is hidden.

OK, then you will have to go deeper into the shell. You will find a
sample for getting icons for desktop etc. here (written in C#):

<URL:http://www.codeproject.com/cs/miscctrl/foldertreeview.asp>
 
would like to do, is be able to identitify needed structures when using API
calls, but, I am missing something. I really don't know where to start; I
can lookup up the structures on MSDN and duplicate them for the most part,
it's just I don't understand the naming convertions for the C++ structures
or marshalling (when to do it, what it's for, etc.). Are there any good
articles that teach the basics of Win32 API programming? Can you make a
recommendation on any books? On a side note what does := (Colon Equals) do,
I mean the actual operator?

If you're interested, I have a class that implements a large number of the
Win32 API calls. I did not write it and can't remember where I found it,
but it is free and you're welcome to it. It could further your learning.

--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
 
Back
Top