Github Tutorial App Shows You How to Use… Github

Github can get pretty complicated and using it can become quite daunting, especially … more

Google Glass-like Clip-On For Regular Glasses Developed by Sony

For the price of $2,000, a pair of glasses that can run apps, take pictures, … more

Micromax Takes OnePlus to Court! Android Wear Receives Lollipop – XDA TV

Android 5.0 Lollipop is available officially for the Moto 360! … more

Google Invites Selected Devs to Buy Project Tango Development Kit

Just about a month ago, the curious Project Tango development kit was … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Give a Folder under 'Programs' a Icon, like 'Games'

OP jpiek

4th February 2006, 12:10 AM   |  #1  
OP Senior Member
Thanks Meter: 8
 
260 posts
Join Date:Joined: Nov 2003
Yes, you can give a folder an icon, IE if you make a subfolder under 'programs' , but file explorers also show them :

create a textfile 'icon.lnk' and enter in it :

1#ceshell.dll,-162

save it and make it hidden....

It looks like the -162 is a code for the icon entry, some files take only '0',
(1#repllog.exe,0) ceshell.dll for example allows -142 -144, -147 and -148

Now on to linking other icons to links (program's, mortscripts !), read someting about it here
4th February 2006, 12:13 AM   |  #2  
vijay555's Avatar
Retired Moderator
Witch Space
Thanks Meter: 57
 
5,782 posts
Join Date:Joined: Jun 2005
Johan: I've posted on this elsewhere. The number is an icon offset within the dll/exe. You need an icon viewer/scanner too find the icon offset you need.

V
4th February 2006, 01:01 AM   |  #3  
OP Senior Member
Thanks Meter: 8
 
260 posts
Join Date:Joined: Nov 2003
Hmm, nice, but how do i find these offsets ?
4th February 2006, 01:12 AM   |  #4  
vijay555's Avatar
Retired Moderator
Witch Space
Thanks Meter: 57
 
5,782 posts
Join Date:Joined: Jun 2005
Because I love you

Be careful, sometimes it goes off hunting for half an hour. It's best to count downwards then upwards. You'll get the hang of it! PHM Tools has a very useful dll full of icons.

BTW, don't forget the first numbers before the # are the length of the shortcut string, ie everything after the #. I don't think it ever makes any difference, but it'd make for an interesting buffer overflow exploit I guess.

30#"\Windows\PHMShell32.dll,-173"

http://forum.xda-developers.com/view...=222846#222846

Phew
Since we're on the subject, I might as well throw this one in for completeness.
You can use an icon NOT from the executable (ie not the default one) by using this kind of syntax:

65#ctlpnl.exe cplmain.cpl,4?\Storage Card\!Install\ftxPBrowser.exe,0

65=length of shortcut string
ctlpnl bit is an example of how to access control panel features (change the 4. You can access tabs where appropriate thus: 4,1 = 1st tab)
Everything after the ? is used to identify the target icon offset in ANOTHER dll/exe.
Change the 0 to specify an offset.
So in this example you're showing the memory control panel, using ftx's default icon.

Enough already! VJOkButt beckons...

V
Attached Files
File Type: exe icon_viewer.exe - [Click for QR Code] (12.5 KB, 3845 views)
4th February 2006, 11:19 AM   |  #5  
OP Senior Member
Thanks Meter: 8
 
260 posts
Join Date:Joined: Nov 2003
Quote:
Originally Posted by vijay555

Because I love you /


:shock: ops: :roll: :lol:


Quote:

PHM Tools has a very useful dll full of icons.

Got it yesterday !

Quote:

BTW, don't forget the first numbers before the # are the length of the shortcut string, ie everything after the #. I don't think it ever makes any difference, but it'd make for an interesting buffer overflow exploit I guess.

I think it's used for shortcuts that point at "MSCALENDER"IE, not to an executable, to decide what's commandline, and what not...


Quote:

Phew
Since we're on the subject, I might as well throw this one in for completeness.
You can use an icon NOT from the executable (ie not the default one) by using this kind of syntax:

65#ctlpnl.exe cplmain.cpl,4?\Storage Card\!Install\ftxPBrowser.exe,0

YES ! that's what i was looking for ! I created some mortscripts, and if i put them in a Todaylauncher, they all have te same icon, now i can add individual icons !
4th February 2006, 05:09 PM   |  #6  
OP Senior Member
Thanks Meter: 8
 
260 posts
Join Date:Joined: Nov 2003
Works like a charm...

The PHM tools i d/l didn't have the dll with all the icons...
Seems i've misplaced the old one

On to a Icon hunt....

Btw, can you use a .bmp as icon, with offset 0 ?
4th February 2006, 05:13 PM   |  #7  
vijay555's Avatar
Retired Moderator
Witch Space
Thanks Meter: 57
 
5,782 posts
Join Date:Joined: Jun 2005
Don't think so. Use something like Microangelo librarian and import your own bmps into a dll and use that. That's how I use claunch.
V
4th March 2006, 10:45 PM   |  #8  
Senior Member
Thanks Meter: 3
 
10
915 posts
Join Date:Joined: Dec 2005
vijay.. your app's not finding any icons in ceshell.dll on my device - I'd imagine it's supposed to? :>
Tried shell32.exe as well.

It did find the icon for DeviceInformation.exe , though.

Oddly enough, a freeware desktop app has the same thing.. can't find anything in ceshell.dll / shell32.exe, but does find the DeviceInformation.exe icon (resource -103). Weird?
5th March 2006, 12:12 AM   |  #9  
vijay555's Avatar
Retired Moderator
Witch Space
Thanks Meter: 57
 
5,782 posts
Join Date:Joined: Jun 2005
Hmm, never really tried it. Just tried Microangelo on rom dumps of the same files, and same findings. Will look into it on a real device I suppose... Any particular icons you're after?

V
5th March 2006, 01:12 AM   |  #10  
OP Senior Member
Thanks Meter: 8
 
260 posts
Join Date:Joined: Nov 2003
Wierd, here's my 'Harvest"



Internal Icons



From PHM Plus tools


[Edited: Created imges instead of links !]

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes