News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

FileIconInit ...cant call directly?

Started by xandaz, July 10, 2013, 07:56:04 AM

Previous topic - Next topic

xandaz

   How is it done?
QuoteFileIconInit is not included in a header file. You must call it directly from Shell32.dll, using ordinal 660.

has anyonne done this?
   ty

xandaz

   oh yeah... GetProcAddress. ooops thanks

xandaz

how about SHGetImageList? anyone ever used it? i'm having trouble declaring that GUID. I've seen this form on the web.IID_IImageList TGUID <46EB5926h,582Eh,4017h,9FDFh,0E8998DAA0950h> but it shows too much initial values. Aaarg,

jj2007

http://www.masmforum.com/board/index.php?topic=15414.0

Faiseur asked the same question - and got no reply...
No C++ code around? PowerBasic maybe?

Yuri

The last two numbers are actually a byte array.

<46EB5926h,582Eh,4017h,<9Fh,0DFh,0E8h,99h,8Dh,0AAh,09h,50h>>

xandaz

   yeah yuri. took a while to understand how to declare to GUID correctly. The answer is of course:
invoke GetModuleHandle,str$("Shell32")
invoke GetProcAddress,eax
call eax

ty guys and regs

xandaz

oops.GetProcAddress,eax,660
sorry typo forgetful mind


jj2007

Quote from: xandaz on July 12, 2013, 10:30:59 AM
   yeah yuri. took a while to understand how to declare to GUID correctly. The answer is of course:
invoke GetModuleHandle,str$("Shell32")
invoke GetProcAddress,eax
call eax

ty guys and regs

chr$("Shell32") might work even better ;-)

xandaz

  hi... sorry for replying so late. Im a little past that. And sorry for the str$ - i dont really use those macros. i kinda guessed from my BASIC memories.