Hi, Edit Again: I used GetBitmapBits instead of _WinAPI_GetDIBits() to retrieve the dib bits. Tried it in XP x86, Tried it in Win7 x64 using x64 & x86 autoit. And it works ok for me.... Excuse the crude code below.. But I was curious on how to create a .ico file from a HICON This was my untidy attempt..lol #include <GDIPlus.au3> #include <WinAPI.au3> Opt("MustDeclareVars", 1) Global $sRegPath, $sImagePath, $hImage, $hIcon ; Get the path of the image $sRegPath = "H