Click here to Skip to main content
15,920,217 members
Home / Discussions / C#
   

C#

 
QuestionHow to Inject Code process ? Pin
hdv21231-May-06 1:11
hdv21231-May-06 1:11 
AnswerRe: How to Inject Code process ? Pin
Larantz31-May-06 1:14
Larantz31-May-06 1:14 
AnswerRe: How to Inject Code process ? Pin
leppie31-May-06 2:04
leppie31-May-06 2:04 
GeneralRe: How to Inject Code process ? Pin
Wjousts31-May-06 5:00
Wjousts31-May-06 5:00 
GeneralRe: How to Inject Code process ? Pin
Robert Rohde31-May-06 5:29
Robert Rohde31-May-06 5:29 
GeneralRe: How to Inject Code process ? Pin
leppie31-May-06 6:15
leppie31-May-06 6:15 
GeneralRe: How to Inject Code process ? Pin
Larantz31-May-06 7:02
Larantz31-May-06 7:02 
QuestionUrgent Pin
Shiv531-May-06 0:26
Shiv531-May-06 0:26 
AnswerRe: Urgent Pin
rah_sin31-May-06 0:37
professionalrah_sin31-May-06 0:37 
AnswerRe: Urgent Pin
maryamf31-May-06 0:44
maryamf31-May-06 0:44 
AnswerRe: Urgent Pin
AbdulRahmanOfpk31-May-06 0:46
AbdulRahmanOfpk31-May-06 0:46 
GeneralRe: Urgent Pin
leppie31-May-06 1:52
leppie31-May-06 1:52 
AnswerRe: Urgent Pin
J4amieC31-May-06 2:18
J4amieC31-May-06 2:18 
GeneralRe: Urgent Pin
led mike31-May-06 4:59
led mike31-May-06 4:59 
Questionanalyze text Pin
abdelhameed8131-May-06 0:20
abdelhameed8131-May-06 0:20 
AnswerRe: analyze text Pin
leppie31-May-06 2:10
leppie31-May-06 2:10 
Questionadding a .cs file programatically in C#.net Pin
compdesign31-May-06 0:08
compdesign31-May-06 0:08 
AnswerRe: adding a .cs file programatically in C#.net Pin
sathish s31-May-06 1:35
sathish s31-May-06 1:35 
QuestionRetrieving correct indexed icon from iconfiles / exefiles Pin
Larantz30-May-06 23:17
Larantz30-May-06 23:17 
Hi everyone.

Still working on my CustomGridColumnStyle class.

So far I'm traversing the registry correctly, and I retrieve the correct
exe-file or dll-file that contains icons for a specific filetype.

Only problem is that for instance the icons for .txt files is located in shell32.dll
at index -152, or atleast I believe it's index -152 due to registryvalue: "%SystemRoot%\system32\shell32.dll,-152"
in subkey: "DefaultIcon", and I'm not pointing to that index so I just get the icon for dll-files when I display the txt-files...

For extracting the icon I use Win32.SHGetFileInfo(..), and I'm wondering:

Is there any way of specifying which icon you want extraced? By index perhaps?

hImgSmall = Win32.SHGetFileInfo(filePath, 0, ref shinfo,
					(uint)Marshal.SizeOf(shinfo),
					Win32.SHGFI_ICON |
					Win32.SHGFI_SMALLICON);


I think the Win32.SHGFI_ICON | Win32.SHGFI_SMALLICON points to some kind of index though.

If anyone has any knowledge of Win32.SHGetFileInfo I'd really appreciate some feedback.

-Larantz-
AnswerRe: Retrieving correct indexed icon from iconfiles / exefiles [modified] Pin
Larantz31-May-06 0:54
Larantz31-May-06 0:54 
Questionadd controls to TabPage Pin
rcwoods30-May-06 23:06
rcwoods30-May-06 23:06 
AnswerRe: add controls to TabPage Pin
rah_sin30-May-06 23:20
professionalrah_sin30-May-06 23:20 
AnswerRe: add controls to TabPage Pin
Mairaaj Khan31-May-06 0:04
professionalMairaaj Khan31-May-06 0:04 
QuestionService starts and stops immediately Pin
israfel30-May-06 23:06
israfel30-May-06 23:06 
QuestionHow to Hide A Process in TaskManager ?? Pin
hdv21230-May-06 23:02
hdv21230-May-06 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.