How do I use the LPWORD type? It's for this.
I'm at this so far:
the index I assume would be 0, it's for getting the associated file icon of say a text or zip file.
I'm at this so far:
Code:
Shell32 [COLOR="#FF0000"]=[/COLOR] Library[COLOR="#FF0000"].[/COLOR]Load([COLOR="#800080"]"Shell32.dll"[/COLOR]); ExtractAssociatedIcon [COLOR="#FF0000"]=[/COLOR] [COLOR="#0000FF"]function[/COLOR](P) [COLOR="#0000FF"]local[/COLOR] m [COLOR="#FF0000"]=[/COLOR] MemoryEx[COLOR="#FF0000"].[/COLOR]Allocate(String[COLOR="#FF0000"].[/COLOR]Length(P) + [COLOR="#000000"]1[/COLOR]) MemoryEx[COLOR="#FF0000"].[/COLOR]String(m[COLOR="#FF0000"],[/COLOR]-[COLOR="#000000"]1[/COLOR][COLOR="#FF0000"],[/COLOR]MEMEX_ASCII[COLOR="#FF0000"],[/COLOR]P) [COLOR="#0000FF"]local[/COLOR] n [COLOR="#FF0000"]=[/COLOR] MemoryEx[COLOR="#FF0000"].[/COLOR]Allocate([COLOR="#000000"]1024[/COLOR]) [COLOR="#008000"]--[/COLOR] [COLOR="#0000FF"]local[/COLOR] H [COLOR="#FF0000"]=[/COLOR] Shell32[COLOR="#FF0000"].[/COLOR]ExtractAssociatedIconA(Application[COLOR="#FF0000"].[/COLOR]GetWndHandle()[COLOR="#FF0000"],[/COLOR]m[COLOR="#FF0000"],[/COLOR]n) MemoryEx[COLOR="#FF0000"].[/COLOR]Free(m) MemoryEx[COLOR="#FF0000"].[/COLOR]Free(n) [COLOR="#0000FF"]return[/COLOR] H [COLOR="#0000FF"]end[/COLOR];
Comment