Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,137 Members 49,771 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
jpiek
Old
#1  
Senior Member - OP
Thanks Meter 8
Posts: 260
Join Date: Nov 2003
Default Give a Folder under 'Programs' a Icon, like 'Games'

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
Johan Piek
 
vijay555
Old
#2  
vijay555's Avatar
Retired Moderator
Thanks Meter 53
Posts: 5,781
Join Date: Jun 2005
Location: Witch Space
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
releases: www.vijay555.comtwitterdonatefrappr
 
jpiek
Old
#3  
Senior Member - OP
Thanks Meter 8
Posts: 260
Join Date: Nov 2003
Hmm, nice, but how do i find these offsets ?
Johan Piek
 
vijay555
Old
#4  
vijay555's Avatar
Retired Moderator
Thanks Meter 53
Posts: 5,781
Join Date: Jun 2005
Location: Witch Space
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)
releases: www.vijay555.comtwitterdonatefrappr
 
jpiek
Old
#5  
Senior Member - OP
Thanks Meter 8
Posts: 260
Join Date: 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 !
Johan Piek
 
jpiek
Old
#6  
Senior Member - OP
Thanks Meter 8
Posts: 260
Join Date: 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 ?
Johan Piek
 
vijay555
Old
#7  
vijay555's Avatar
Retired Moderator
Thanks Meter 53
Posts: 5,781
Join Date: Jun 2005
Location: Witch Space
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
releases: www.vijay555.comtwitterdonatefrappr
 
ZeBoxx
Old
#8  
Senior Member
Thanks Meter 3
Posts: 915
Join Date: 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?
HTC Wizard::Qtek 9100 EN
ROM: 1.1.7.5 (9/22/05)
ExtROM: 1.1.7.105
Radio: 01.01.10
Protocol: 4.0.13.16
OS: 5.1.70 (Build 14402.1.1.0)
 
vijay555
Old
#9  
vijay555's Avatar
Retired Moderator
Thanks Meter 53
Posts: 5,781
Join Date: Jun 2005
Location: Witch Space
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
releases: www.vijay555.comtwitterdonatefrappr
 
jpiek
Old
#10  
Senior Member - OP
Thanks Meter 8
Posts: 260
Join Date: Nov 2003
Wierd, here's my 'Harvest"



Internal Icons



From PHM Plus tools


[Edited: Created imges instead of links !]
Johan Piek

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


MultiROM Makes Its Way to the LG G2

Over the last few weeks, we’ve seen quite a fewflagship (and former flagship) devicesget to … more

Jair Player with a Major Update–Here’s What’s New!

Back in May, we talked a bit aboutJair Player, a nice looking music … more

Paid Android App Developers Will Soon Have to Provide Physical Address

Google has now changed its policies regarding paid app developers. … more