![]() ![]() ico file as raw binary data into the structure Local $tIcon = DllStructCreate ( 'ushort Reserved ushort Type ushort Count byte' ) Local $hFile = _WinAPI _CreateFile ( $sIcon, 2, 2 ) If Not $hFile Then ExitLoop EndIf Local $iBytes = 0 _WinAPI _ReadFile ( $hFile, $tIcon, DllStructGetSize ( $tIcon ), $iBytes ) _WinAPI _CloseHandle ( $hFile ) If Not $iBytes Then ExitLoop EndIf Add all icons from. Expand collapse popup #include Global Const $g_sExe = & '\photofiltre7.exe' this is the name of the executable Global Const $tagICONRESDIR = 'byte Width byte Height byte ColorCount byte Reserved ushort Planes ushort BitCount dword BytesInRes ushort IconId ' Global Const $tagNEWHEADER = 'ushort Reserved ushort ResType ushort ResCount ' & $tagICONRESDIR Select icon to update resource Local $sIcon = & "\icon.ico" this is the name of your icon If Not $sIcon Then Exit EndIf Local $iError = 1 Do Begin update resources Local $hUpdate = _WinAPI _BeginUpdateResource ( $g_sExe ) If Then ExitLoop EndIf Read. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |